EVP_DigestSignFinal

Generates a signature for the data in the message digest context

Typically this function will be called twice, firstly to determine the length of the signature, and secondly to retrieve the signature.

extern (C)
int
EVP_DigestSignFinal
(,
const(void)* signature
,
size_t* sig_len
)

Parameters

ctx EVP_MD_CTX*

the message digest context

signature const(void)*

buffer where the signature should be written, or null

sig_len size_t*

the length of the buffer, if sig is not null.

Return Value

Type: int

1 on success. 0 or negative for failure

Meta