$NetBSD: d2i_DSAPublicKey.3,v 1.1.1.1 2018/02/03 22:43:39 christos Exp $ Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) Standard preamble: ========================================================================..
..
..
Set up some character translations and predefined strings. \*(-- will give an unbreakable dash, \*(PI will give pi, \*(L" will give a left double quote, and \*(R" will give a right double quote. \*(C+ will give a nicer C++. Capital omega is used to do unbreakable dashes and therefore won't be available. \*(C` and \*(C' expand to `' in nroff, nothing in troff, for use with C<>..tr \(*W-
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
. ds C`
. ds C'
'br\}
Escape single quotes in literal strings from groff's Unicode transform. If the F register is >0, we'll generate index entries on stderr for titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index entries marked with X<> in POD. Of course, you'll have to process the output yourself in some meaningful fashion. Avoid warning from groff about undefined register 'F'...
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
.\}
Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). Fear. Run. Save yourself. No user-serviceable parts.. \" fudge factors for nroff and troff
. ds #H 0
. ds #V .8m
. ds #F .3m
. ds #[ \f1
. ds #]
.\}
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
. ds #V .6m
. ds #F 0
. ds #[ \&
. ds #] \&
.\}
. \" simple accents for nroff and troff
. ds ' \&
. ds ` \&
. ds ^ \&
. ds , \&
. ds ~ ~
. ds /
.\}
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
.\}
. \" troff and (daisy-wheel) nroff accents
. \" corrections for vroff
. \" for low resolution devices (crt and lpr)
\{\
. ds : e
. ds 8 ss
. ds o a
. ds d- d\h'-1'\(ga
. ds D- D\h'-1'\(hy
. ds th \o'bp'
. ds Th \o'LP'
. ds ae ae
. ds Ae AE
.\}
======================================================================== Title "d2i_DSAPublicKey 3" d2i_DSAPublicKey 3 "2016-10-14" "1.0.2k" "OpenSSL"
For nroff, turn off justification. Always turn off hyphenation; it makes way too many mistakes in technical documents..nh
"NAME"
d2i_DSAPublicKey, i2d_DSAPublicKey, d2i_DSAPrivateKey, i2d_DSAPrivateKey,
d2i_DSA_PUBKEY, i2d_DSA_PUBKEY, d2i_DSAparams, i2d_DSAparams, d2i_DSA_SIG, i2d_DSA_SIG - DSA key encoding
and parsing functions.
"LIBRARY"
libcrypto, -lcrypto
"SYNOPSIS"
Header "SYNOPSIS" .Vb 2
#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);
.Ve
"DESCRIPTION"
Header "DESCRIPTION" \fId2i_DSAPublicKey() and
i2d_DSAPublicKey() decode and encode the \s-1DSA\s0 public key
components structure.
\fId2i_DSA_PUBKEY() and i2d_DSA_PUBKEY() decode and encode an \s-1DSA\s0 public key using
a SubjectPublicKeyInfo (certificate public key) structure.
\fId2i_DSAPrivateKey(), i2d_DSAPrivateKey() decode and encode the \s-1DSA\s0 private key
components.
\fId2i_DSAparams(), i2d_DSAparams() decode and encode the \s-1DSA\s0 parameters using
a Dss-Parms structure as defined in \s-1RFC2459.\s0
\fId2i_DSA_SIG(), i2d_DSA_SIG() decode and encode a \s-1DSA\s0 signature using a
\fBDss-Sig-Value structure as defined in \s-1RFC2459.\s0
The usage of all of these functions is similar to the d2i_X509() and
\fIi2d_X509() described in the d2i_X509\|(3) manual page.
"NOTES"
Header "NOTES" The
\s-1DSA\s0 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 therefore
offers no private key security.
The \s-1DSA_PUBKEY\s0 functions should be used in preference to the DSAPublicKey
functions when encoding public keys because they use a standard format.
The DSAPublicKey functions use an non standard format the actual data encoded
depends on the value of the write_params field of the a key parameter.
If write_params is zero then only the pub_key field is encoded as an
\fB\s-1INTEGER\s0. If write_params is 1 then a \s-1SEQUENCE\s0 consisting of the
\fBp, q, g and pub_key respectively fields are encoded.
The DSAPrivateKey functions also use a non standard structure consiting
consisting of a \s-1SEQUENCE\s0 containing the p, q, g and pub_key and
\fBpriv_key fields respectively.
"SEE ALSO"
Header "SEE ALSO" \fId2i_X509\|(3)
"HISTORY"
Header "HISTORY" \s-1TBA\s0