Validate the key associated with a key context (public/private consistency checks).
Declared in <openssl/evp.h>
<openssl/evp.h>
int EVP_PKEY_check(EVP_PKEY_CTX* ctx);
1 if the key is valid, 0 if invalid, or a negative value on error.