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

Name

Description

ctx

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

Created with MrDocs