PolarSSL v1.2.8
x509write.h
Go to the documentation of this file.
1 
27 #ifndef POLARSSL_X509_WRITE_H
28 #define POLARSSL_X509_WRITE_H
29 
30 #include "rsa.h"
31 
32 typedef struct _x509_req_name
33 {
34  char oid[128];
35  char name[128];
36 
38 }
40 
41 int x509_write_pubkey_der( unsigned char *buf, size_t size, rsa_context *rsa );
42 int x509_write_key_der( unsigned char *buf, size_t size, rsa_context *rsa );
43 int x509_write_cert_req( unsigned char *buf, size_t size, rsa_context *rsa,
44  x509_req_name *req_name, int hash_id );
45 
46 #endif /* POLARSSL_X509_WRITE_H */
int x509_write_pubkey_der(unsigned char *buf, size_t size, rsa_context *rsa)
struct _x509_req_name x509_req_name
char name[128]
Definition: x509write.h:35
struct _x509_req_name * next
Definition: x509write.h:37
RSA context structure.
Definition: rsa.h:135
int x509_write_cert_req(unsigned char *buf, size_t size, rsa_context *rsa, x509_req_name *req_name, int hash_id)
The RSA public-key cryptosystem.
int x509_write_key_der(unsigned char *buf, size_t size, rsa_context *rsa)
char oid[128]
Definition: x509write.h:34