EVP_PKEY_private_check

Validate the private key associated with a key context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_private_check(EVP_PKEY_CTX* ctx);

Return Value

1 if the private key is valid, or a non-positive value on failure.

Parameters

NameDescription
ctxContext holding the key to check (typically created with EVP_PKEY_CTX_new).