EVP_PKEY_get_group_name

Copy the elliptic-curve or DH group name from a key into a caller buffer.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_get_group_name(
    EVP_PKEY const* pkey,
    char* name,
    size_t name_sz,
    size_t* gname_len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
pkeyKey whose group / curve name is queried.
nameOptional destination buffer for the NUL-terminated name, or NULL to query length only.
name_szSize of name in bytes.
gname_lenOptional destination for the name length excluding NUL, or NULL.