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

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_CTX_get_group_name(
    EVP_PKEY_CTX* ctx,
    char* name,
    size_t namelen);

Return Value

1 on success, or a non‐positive value on failure.

Parameters

Name

Description

ctx

Key context whose group / curve name is queried.

name

Destination buffer for the NUL‐terminated name.

namelen

Capacity of name in bytes.

Created with MrDocs