1d2i_DSAPublicKey(3)                 OpenSSL                d2i_DSAPublicKey(3)
2
3
4

NAME

6       d2i_DSAPublicKey, i2d_DSAPublicKey, d2i_DSAPrivateKey,
7       i2d_DSAPrivateKey, d2i_DSA_PUBKEY, i2d_DSA_PUBKEY, d2i_DSAparams,
8       i2d_DSAparams, d2i_DSA_SIG, i2d_DSA_SIG - DSA key encoding and parsing
9       functions.
10

SYNOPSIS

12        #include <openssl/dsa.h>
13        #include <openssl/x509.h>
14
15        DSA * d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length);
16
17        int i2d_DSAPublicKey(const DSA *a, unsigned char **pp);
18
19        DSA * d2i_DSA_PUBKEY(DSA **a, const unsigned char **pp, long length);
20
21        int i2d_DSA_PUBKEY(const DSA *a, unsigned char **pp);
22
23        DSA * d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length);
24
25        int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);
26
27        DSA * d2i_DSAparams(DSA **a, const unsigned char **pp, long length);
28
29        int i2d_DSAparams(const DSA *a, unsigned char **pp);
30
31        DSA * d2i_DSA_SIG(DSA_SIG **a, const unsigned char **pp, long length);
32
33        int i2d_DSA_SIG(const DSA_SIG *a, unsigned char **pp);
34

DESCRIPTION

36       d2i_DSAPublicKey() and i2d_DSAPublicKey() decode and encode the DSA
37       public key components structure.
38
39       d2i_DSA_PUBKEY() and i2d_DSA_PUBKEY() decode and encode an DSA public
40       key using a SubjectPublicKeyInfo (certificate public key) structure.
41
42       d2i_DSAPrivateKey(), i2d_DSAPrivateKey() decode and encode the DSA
43       private key components.
44
45       d2i_DSAparams(), i2d_DSAparams() decode and encode the DSA parameters
46       using a Dss-Parms structure as defined in RFC2459.
47
48       d2i_DSA_SIG(), i2d_DSA_SIG() decode and encode a DSA signature using a
49       Dss-Sig-Value structure as defined in RFC2459.
50
51       The usage of all of these functions is similar to the d2i_X509() and
52       i2d_X509() described in the d2i_X509(3) manual page.
53

NOTES

55       The DSA structure passed to the private key encoding functions should
56       have all the private key components present.
57
58       The data encoded by the private key functions is unencrypted and
59       therefore offers no private key security.
60
61       The DSA_PUBKEY functions should be used in preference to the
62       DSAPublicKey functions when encoding public keys because they use a
63       standard format.
64
65       The DSAPublicKey functions use an non standard format the actual data
66       encoded depends on the value of the write_params field of the a key
67       parameter.  If write_params is zero then only the pub_key field is
68       encoded as an INTEGER. If write_params is 1 then a SEQUENCE consisting
69       of the p, q, g and pub_key respectively fields are encoded.
70
71       The DSAPrivateKey functions also use a non standard structure consiting
72       consisting of a SEQUENCE containing the p, q, g and pub_key and
73       priv_key fields respectively.
74

SEE ALSO

76       d2i_X509(3)
77

HISTORY

79       TBA
80
81
82
831.0.2k                            2017-01-26               d2i_DSAPublicKey(3)
Impressum