EVP_PKEY_CTX_is_a

Test whether a key context is for the named key type.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_CTX_is_a(
    EVP_PKEY_CTX* ctx,
    char const* keytype);

Return Value

1 if ctx matches keytype, or 0 otherwise.

Parameters

NameDescription
ctxKey context to query.
keytypeAlgorithm name such as "RSA" or "EC".