Create a DER-encoded DSA signature over a message digest (deprecated).
Declared in <openssl/dsa.h>
[[deprecated]]
int
DSA_sign(
int type,
unsigned char const* dgst,
int dlen,
unsigned char* sig,
unsigned int* siglen,
DSA* dsa);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| 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. |