1d2i_RSAPublicKey(3) OpenSSL d2i_RSAPublicKey(3)
2
3
4
6 d2i_RSAPublicKey, i2d_RSAPublicKey, d2i_RSAPrivateKey,
7 i2d_RSAPrivateKey, d2i_RSA_PUBKEY, i2d_RSA_PUBKEY, i2d_Netscape_RSA,
8 d2i_Netscape_RSA - RSA public and private key encoding functions.
9
11 #include <openssl/rsa.h>
12 #include <openssl/x509.h>
13
14 RSA * d2i_RSAPublicKey(RSA **a, const unsigned char **pp, long length);
15
16 int i2d_RSAPublicKey(RSA *a, unsigned char **pp);
17
18 RSA * d2i_RSA_PUBKEY(RSA **a, const unsigned char **pp, long length);
19
20 int i2d_RSA_PUBKEY(RSA *a, unsigned char **pp);
21
22 RSA * d2i_RSAPrivateKey(RSA **a, const 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, const unsigned char **pp, long length, int (*cb)());
29
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
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
51 therefore offers no private key security.
52
53 The NET format functions are present to provide compatibility with
54 certain very old software. This format has some severe security
55 weaknesses and should be avoided if possible.
56
58 d2i_X509(3)
59
61 TBA
62
63
64
651.0.1e 2013-02-11 d2i_RSAPublicKey(3)