5 EVP_PKEY_get_group_name - get group name of a key
9 #include <openssl/evp.h>
11 int EVP_PKEY_get_group_name(EVP_PKEY *pkey, char *gname, size_t gname_sz,
16 EVP_PKEY_get_group_name() fills in the group name of the I<pkey> into
17 I<gname>, up to at most I<gname_sz> bytes including the ending NUL byte
18 and assigns I<*gname_len> the actual size of the name, if I<pkey>'s key type
20 I<gname> as well as I<gname_len> may individually be NULL, and won't be
21 filled in or assigned in that case.
25 Among the standard OpenSSL key types, this is only supported for DH, EC and
26 SM2 keys. Other providers may support this for additional key types.
30 EVP_PKEY_get_group_name() returns 1 if the group name could be filled in,
35 This function was added in OpenSSL 3.0.
39 Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
41 Licensed under the Apache License 2.0 (the "License"). You may not use
42 this file except in compliance with the License. You can obtain a copy
43 in the file LICENSE in the source distribution or at
44 L<https://www.openssl.org/source/license.html>.