Initialise ctx for a one‐shot or streaming DigestSign with key pkey.
Synopsis
Declared in <openssl/evp.h>
int
EVP_DigestSignInit(
EVP_MD_CTX* ctx,
EVP_PKEY_CTX** pctx,
EVP_MD const* type,
ENGINE* e,
EVP_PKEY* pkey);
Return Value
1 on success, or 0 on error.
Parameters
Name |
Description |
ctx |
Digest/sign context to initialise. |
pctx |
Optional out‐parameter receiving the internal EVP_PKEY_CTX, or NULL. |
type |
Digest to use, or NULL for algorithms that do not take a separate MD. |
e |
Legacy ENGINE, or NULL. |
pkey |
Private key used for signing. |
Created with MrDocs