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_DSA_SIG,
8       i2d_DSA_SIG - DSA key encoding and parsing functions.
9

SYNOPSIS

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

DESCRIPTION

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

NOTES

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

SEE ALSO

75       d2i_X509(3)
76

HISTORY

78       TBA
79
80
81
821.0.1e                            2013-02-11               d2i_DSAPublicKey(3)
Impressum