1d2i_RSAPublicKey(3)                 OpenSSL                d2i_RSAPublicKey(3)
2
3
4

NAME

6       d2i_RSAPublicKey, i2d_RSAPublicKey, d2i_RSAPrivateKey, i2d_RSAPri‐
7       vateKey, d2i_RSA_PUBKEY, i2d_RSA_PUBKEY, i2d_Netscape_RSA, d2i_Net‐
8       scape_RSA - RSA public and private key encoding functions.
9

SYNOPSIS

11        #include <openssl/rsa.h>
12        #include <openssl/x509.h>
13
14        RSA * d2i_RSAPublicKey(RSA **a, unsigned char **pp, long length);
15
16        int i2d_RSAPublicKey(RSA *a, unsigned char **pp);
17
18        RSA * d2i_RSA_PUBKEY(RSA **a, unsigned char **pp, long length);
19
20        int i2d_RSA_PUBKEY(RSA *a, unsigned char **pp);
21
22        RSA * d2i_RSAPrivateKey(RSA **a, unsigned char **pp, long length);
23
24        int i2d_RSAPrivateKey(RSA *a, unsigned char **pp);
25
26        int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)());
27
28        RSA * d2i_Netscape_RSA(RSA **a, unsigned char **pp, long length, int (*cb)());
29

DESCRIPTION

31       d2i_RSAPublicKey() and i2d_RSAPublicKey() decode and encode a PKCS#1
32       RSAPublicKey structure.
33
34       d2i_RSA_PUBKEY() and i2d_RSA_PUBKEY() decode and encode an RSA public
35       key using a SubjectPublicKeyInfo (certificate public key) structure.
36
37       d2i_RSAPrivateKey(), i2d_RSAPrivateKey() decode and encode a PKCS#1
38       RSAPrivateKey structure.
39
40       d2i_Netscape_RSA(), i2d_Netscape_RSA() decode and encode an RSA private
41       key in NET format.
42
43       The usage of all of these functions is similar to the d2i_X509() and
44       i2d_X509() described in the d2i_X509(3) manual page.
45

NOTES

47       The RSA structure passed to the private key encoding functions should
48       have all the PKCS#1 private key components present.
49
50       The data encoded by the private key functions is unencrypted and there‐
51       fore offers no private key security.
52
53       The NET format functions are present to provide compatibility with cer‐
54       tain very old software. This format has some severe security weaknesses
55       and should be avoided if possible.
56

SEE ALSO

58       d2i_X509(3)
59

HISTORY

61       TBA
62
63
64
650.9.8b                            2003-12-10               d2i_RSAPublicKey(3)
Impressum