5 d2i_RSAPublicKey, i2d_RSAPublicKey, d2i_RSAPrivateKey, i2d_RSAPrivateKey,
6 d2i_RSA_PUBKEY, i2d_RSA_PUBKEY, i2d_Netscape_RSA,
7 d2i_Netscape_RSA - RSA public and private key encoding functions.
11 #include <openssl/rsa.h>
12 #include <openssl/x509.h>
14 RSA * d2i_RSAPublicKey(RSA **a, const unsigned char **pp, long length);
16 int i2d_RSAPublicKey(RSA *a, unsigned char **pp);
18 RSA * d2i_RSA_PUBKEY(RSA **a, const unsigned char **pp, long length);
20 int i2d_RSA_PUBKEY(RSA *a, unsigned char **pp);
22 RSA * d2i_RSAPrivateKey(RSA **a, const unsigned char **pp, long length);
24 int i2d_RSAPrivateKey(RSA *a, unsigned char **pp);
26 int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)());
28 RSA * d2i_Netscape_RSA(RSA **a, const unsigned char **pp, long length, int (*cb)());
32 d2i_RSAPublicKey() and i2d_RSAPublicKey() decode and encode a PKCS#1 RSAPublicKey
35 d2i_RSA_PUBKEY() and i2d_RSA_PUBKEY() decode and encode an RSA public key using
36 a SubjectPublicKeyInfo (certificate public key) structure.
38 d2i_RSAPrivateKey(), i2d_RSAPrivateKey() decode and encode a PKCS#1 RSAPrivateKey
41 d2i_Netscape_RSA(), i2d_Netscape_RSA() decode and encode an RSA private key in
44 The usage of all of these functions is similar to the d2i_X509() and
45 i2d_X509() described in the L<d2i_X509(3)|d2i_X509(3)> manual page.
49 The B<RSA> structure passed to the private key encoding functions should have
50 all the PKCS#1 private key components present.
52 The data encoded by the private key functions is unencrypted and therefore
53 offers no private key security.
55 The NET format functions are present to provide compatibility with certain very
56 old software. This format has some severe security weaknesses and should be
61 L<d2i_X509(3)|d2i_X509(3)>