⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 d2i_dsapublickey.pod

📁 开源的ssl算法openssl,版本0.9.8H
💻 POD
字号:
=pod=head1 NAMEd2i_DSAPublicKey, i2d_DSAPublicKey, d2i_DSAPrivateKey, i2d_DSAPrivateKey,d2i_DSA_PUBKEY, i2d_DSA_PUBKEY, d2i_DSA_SIG, i2d_DSA_SIG - DSA key encodingand parsing functions.=head1 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);=head1 DESCRIPTIONd2i_DSAPublicKey() and i2d_DSAPublicKey() decode and encode the DSA public keycomponents structure.d2i_DSA_PUBKEY() and i2d_DSA_PUBKEY() decode and encode an DSA public key usinga SubjectPublicKeyInfo (certificate public key) structure.d2i_DSAPrivateKey(), i2d_DSAPrivateKey() decode and encode the DSA private keycomponents.d2i_DSAparams(), i2d_DSAparams() decode and encode the DSA parameters usinga B<Dss-Parms> structure as defined in RFC2459.d2i_DSA_SIG(), i2d_DSA_SIG() decode and encode a DSA signature using aB<Dss-Sig-Value> structure as defined in RFC2459.The usage of all of these functions is similar to the d2i_X509() andi2d_X509() described in the L<d2i_X509(3)|d2i_X509(3)> manual page.=head1 NOTESThe B<DSA> structure passed to the private key encoding functions should haveall the private key components present.The data encoded by the private key functions is unencrypted and therefore offers no private key security.The B<DSA_PUBKEY> functions should be used in preference to the B<DSAPublicKey>functions when encoding public keys because they use a standard format.The B<DSAPublicKey> functions use an non standard format the actual data encodeddepends on the value of the B<write_params> field of the B<a> key parameter.If B<write_params> is zero then only the B<pub_key> field is encoded as anB<INTEGER>. If B<write_params> is 1 then a B<SEQUENCE> consisting of theB<p>, B<q>, B<g> and B<pub_key> respectively fields are encoded.The B<DSAPrivateKey> functions also use a non standard structure consitingconsisting of a SEQUENCE containing the B<p>, B<q>, B<g> and B<pub_key> andB<priv_key> fields respectively.=head1 SEE ALSOL<d2i_X509(3)|d2i_X509(3)>=head1 HISTORYTBA=cut

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -