EVP_PKEY_CTX_get1_id_len

Return the length of an algorithm-specific ID associated with a key context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_CTX_get1_id_len(
    EVP_PKEY_CTX* ctx,
    size_t* id_len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxKey context that holds an ID (for example SM2 user id).
id_lenReceives the ID length in bytes.