Documentation
From my personal library, The Internet

man page:

       key encoding and parsing functions.


SYNOPSIS

        #include <openssl/dsa.h>
        #include <openssl/x509.h>

        DSA * d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length);

        int i2d_DSAPublicKey(const DSA *a, unsigned char **pp);

        DSA * d2i_DSA_PUBKEY(DSA **a, const unsigned char **pp, long length);

        int i2d_DSA_PUBKEY(const DSA *a, unsigned char **pp);

        DSA * d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length);

        int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);

        DSA * d2i_DSAparams(DSA **a, const unsigned char **pp, long length);

        int i2d_DSAparams(const DSA *a, unsigned char **pp);

        DSA * d2i_DSA_SIG(DSA_SIG **a, const unsigned char **pp, long length);

        int i2d_DSA_SIG(const DSA_SIG *a, unsigned char **pp);


DESCRIPTION

       d2i_DSAPublicKey() and i2d_DSAPublicKey() decode and encode the DSA
       public key components structure.

       d2i_DSA_PUBKEY() and i2d_DSA_PUBKEY() decode and encode an DSA public
       key using a SubjectPublicKeyInfo (certificate public key) structure.

       d2i_DSAPrivateKey(), i2d_DSAPrivateKey() decode and encode the DSA pri-
       vate key components.

       d2i_DSAparams(), i2d_DSAparams() decode and encode the DSA parameters
       using a Dss-Parms structure as defined in RFC2459.

       d2i_DSA_SIG(), i2d_DSA_SIG() decode and encode a DSA signature using a
       Dss-Sig-Value structure as defined in RFC2459.

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


NOTES

       The DSA structure passed to the private key encoding functions should
       have all the private key components present.

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


SEE ALSO

       d2i_X509(3)


HISTORY

       TBA



0.9.8d                            2003-12-10               d2i_DSAPublicKey(3)