EVP_DigestSignInit

Sets up the digest context for generating a signature

For some key types and parameters the random number generator must be seeded or the operation will fail.

extern (C)
int
EVP_DigestSignInit

Parameters

ctx EVP_MD_CTX*

context, must have been created with EVP_MD_CTX_new()

pctx EVP_PKEY_CTX**

if not null, then the pkey context will be copied here

type const(EVP_MD)*

the message digest algorithm that will be used

e ENGINE*

the digest engine to use. May be null for some algorithms

pkey EVP_PKEY*

the private key

Return Value

Type: int

1 on success, 0 or negative for failure, -2 if the operation is not supported by the publuc key algorithm

Meta