PEM_SignInit

Initialize an EVP_MD_CTX for signing with digest type (used by PEM_Sign*).

Synopsis

Declared in <openssl/pem.h>

int
PEM_SignInit(
    EVP_MD_CTX* ctx,
    EVP_MD* type);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxDigest context to initialize for signing.
typeMessage digest algorithm (for example EVP_sha256()).