Create a DER‐encoded DSA signature over a message digest (deprecated).
Synopsis
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);
|
Warning
|
Deprecated. Use of this entity is allowed but discouraged. |
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
type |
Historical digest NID; ignored by modern implementations. |
dgst |
Digest octets to sign. |
dlen |
Length of |
sig |
Output buffer receiving the DER signature (at least DSA_size( |
siglen |
Receives the number of signature bytes written. |
dsa |
DSA key containing the private key used for signing. |
Created with MrDocs