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

Name

Description

ctx

Digest context to initialize for signing.

type

Message digest algorithm (for example EVP_sha256()).

Created with MrDocs