Copy the elliptic-curve or DH group name from a key context into a caller buffer.
Declared in <openssl/evp.h>
int
EVP_PKEY_CTX_get_group_name(
EVP_PKEY_CTX* ctx,
char* name,
size_t namelen);
1 on success, or a non-positive value on failure.
| 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. |