Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
d2i_DSAPublicKey, i2d_DSAPublicKey, d2i_DSA_PUBKEY, i2d_DSA_PUBKEY, d2i_DSA_PUBKEY_bio, d2i_DSA_PUBKEY_fp, i2d_DSA_PUBKEY_bio, i2d_DSA_PUBKEY_fp, d2i_DSAPrivateKey, i2d_DSAPrivateKey, d2i_DSAPrivateKey_bio, d2i_DSAPrivateKey_fp, i2d_DSAPrivateKey_bio, i2d_DSAPrivateKey_fp, d2i_DSAparams, i2d_DSAparams, d2i_DSAparams_bio, i2d_DSAparams_bio, d2i_DSAparams_fp, i2d_DSAparams_fp, DSAparams_dup, d2i_DSA_SIG, i2d_DSA_SIG — decode and encode DSA keysSYNOPSIS
#include <openssl/dsa.h>d2i_DSAPublicKey(DSA **val_out, const unsigned char **der_in, long length);
i2d_DSAPublicKey(const DSA *val_in, unsigned char **der_out);
d2i_DSA_PUBKEY(DSA **val_out, const unsigned char **der_in, long length);
i2d_DSA_PUBKEY(const DSA *val_in, unsigned char **der_out);
d2i_DSA_PUBKEY_bio(BIO *in_bio, DSA **val_out);
d2i_DSA_PUBKEY_fp(FILE *in_fp, DSA **val_out);
i2d_DSA_PUBKEY_bio(BIO *out_bio, DSA *val_in);
i2d_DSA_PUBKEY_fp(FILE *out_fp, DSA *val_in);
d2i_DSAPrivateKey(DSA **val_out, const unsigned char **der_in, long length);
i2d_DSAPrivateKey(const DSA *val_in, unsigned char **der_out);
d2i_DSAPrivateKey_bio(BIO *in_bio, DSA **val_out);
d2i_DSAPrivateKey_fp(FILE *in_fp, DSA **val_out);
i2d_DSAPrivateKey_bio(BIO *out_bio, DSA *val_in);
i2d_DSAPrivateKey_fp(FILE *out_fp, DSA *val_in);
d2i_DSAparams(DSA **val_out, const unsigned char **der_in, long length);
i2d_DSAparams(const DSA *val_in, unsigned char **der_out);
d2i_DSAparams_bio(BIO *in_bio, DSA **val_out);
i2d_DSAparams_bio(BIO *out_bio, DSA *val_in);
d2i_DSAparams_fp(FILE *in_fp, DSA **val_out);
i2d_DSAparams_fp(FILE, *out_fp, DSA *val_in);
DSAparams_dup(DSA *val_in);
d2i_DSA_SIG(DSA_SIG **val_out, const unsigned char **der_in, long length);
i2d_DSA_SIG(const DSA_SIG *val_in, unsigned char **der_out);
DESCRIPTION
These functions decode and encode DSA keys and parameters. For details about the semantics, examples, caveats, and bugs, see ASN1_item_d2i(3).RETURN VALUES
d2i_DSAPublicKey(), d2i_DSA_PUBKEY(), d2i_DSA_PUBKEY_bio(), d2i_DSA_PUBKEY_fp(), d2i_DSAPrivateKey(), d2i_DSAPrivateKey_bio(), d2i_DSAPrivateKey_fp(), d2i_DSAparams(), d2i_DSAparams_bio(), d2i_DSAparams_fp(), and DSAparams_dup() return a valid DSA object or NULL if an error occurs.SEE ALSO
ASN1_item_d2i(3), DSA_new(3), DSA_SIG_new(3), EVP_PKEY_set1_DSA(3), PEM_write_DSAPrivateKey(3), X509_PUBKEY_new(3)STANDARDS
RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile, section 4.1: Basic Certificate Fields- section 2.2.2: DSA Signature Algorithm
- section 2.3.2: DSA Signature Keys