Validate that the public and private components of a key form a consistent pair.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_pairwise_check(EVP_PKEY_CTX* ctx);

Return Value

1 if the key pair is consistent, 0 if not, or a negative value on error.

Parameters

Name

Description

ctx

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

Created with MrDocs