[#DSA_sign] = DSA_sign :mrdocs: Create a DER‐encoded DSA signature over a message digest (deprecated). == Synopsis Declared in `<openssl/dsa.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int DSA_sign( int type, unsigned char const* dgst, int dlen, unsigned char* sig, unsigned int* siglen, xref:DSA.adoc[DSA]* dsa); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *type* | Historical digest NID; ignored by modern implementations. | *dgst* | Digest octets to sign. | *dlen* | Length of `dgst` in bytes. | *sig* | Output buffer receiving the DER signature (at least DSA_size(`dsa)` bytes). | *siglen* | Receives the number of signature bytes written. | *dsa* | DSA key containing the private key used for signing. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#