MyWebUniversity.com Home Page
 



Darwin Mac OS X man pages main menu
d2iRSAPublicKey(3)                 OpenSL                d2iRSAPublicKey(3)



NAME
       d2iRSAPublicKey, i2dRSAPublicKey, d2iRSAPrivateKey, i2dRSAPri-
       vateKey, d2iRSAPUBKEY, i2dRSAPUBKEY, i2dNetscapeRSA,
       d2iNetscapeRSA - RSA public and private key encoding functions.

SYNOPSIS
        #include 
        #include 

        RSA * d2iRSAPublicKey(RSA **a, unsigned char **pp, long length);

        int i2dRSAPublicKey(RSA *a, unsigned char **pp);

        RSA * d2iRSAPUBKEY(RSA **a, unsigned char **pp, long length);

        int i2dRSAPUBKEY(RSA *a, unsigned char **pp);

        RSA * d2iRSAPrivateKey(RSA **a, unsigned char **pp, long length);

        int i2dRSAPrivateKey(RSA *a, unsigned char **pp);

        int i2dNetscapeRSA(RSA *a, unsigned char **pp, int (*cb)());

        RSA * d2iNetscapeRSA(RSA **a, unsigned char **pp, long length, int (*cb)());

DESCRIPTION
       d2iRSAPublicKey() and i2dRSAPublicKey() decode and encode a PKCS#1
       RSAPublicKey structure.

       d2iRSAPUBKEY() and i2dRSAPUBKEY() decode and encode an RSA public
       key using a SubjectPublicKeyInfo (certificate public key) structure.

       d2iRSAPrivateKey(), i2dRSAPrivateKey() decode and encode a PKCS#1
       RSAPrivateKey structure.

       d2iNetscapeRSA(), i2dNetscapeRSA() decode and encode an RSA private
       key in NET format.

       The usage of all of these functions is similar to the d2iX509() and
       i2dX509() described in the d2iX509(3) manual page.

NOTES
       The RSA structure passed to the private key encoding functions should
       have all the PKCS#1 private key components present.

       The data encoded by the private key functions is unencrypted and there-
       fore offers no private key security.

       The NET format functions are present to provide compatibility with cer-
       tain very old software. This format has some severe security weaknesses
       and should be avoided if possible.

SEE ALSO
       d2iX509(3)

HISTORY
       TBA



0.9.7i                            2003-12-10               d2iRSAPublicKey(3)
Darwin Mac OS X man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™