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

Name

Description

ctx

Key context to query.

keytype

Algorithm name such as "RSA" or "EC".

Created with MrDocs