Validate the key associated with a key context (public/private consistency checks).

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_check(EVP_PKEY_CTX* ctx);

Return Value

1 if the key is valid, 0 if invalid, or a negative value on error.

Parameters

Name

Description

ctx

Context whose key is checked (from EVP_PKEY_CTX_new or similar).

Created with MrDocs