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

Name

Description

pkey

Key whose group / curve name is queried.

name

Optional destination buffer for the NUL‐terminated name, or NULL to query length only.

name_sz

Size of name in bytes.

gname_len

Optional destination for the name length excluding NUL, or NULL.

Created with MrDocs