1EVP_PKEY_GET_GROUP_NAME(3ossl) OpenSSL EVP_PKEY_GET_GROUP_NAME(3ossl)
2
3
4
6 EVP_PKEY_get_group_name - get group name of a key
7
9 #include <openssl/evp.h>
10
11 int EVP_PKEY_get_group_name(EVP_PKEY *pkey, char *gname, size_t gname_sz,
12 size_t *gname_len);
13
15 EVP_PKEY_get_group_name() fills in the group name of the pkey into
16 gname, up to at most gname_sz bytes including the ending NUL byte and
17 assigns *gname_len the actual length of the name not including the NUL
18 byte, if pkey's key type supports it. gname as well as gname_len may
19 individually be NULL, and won't be filled in or assigned in that case.
20
22 Among the standard OpenSSL key types, this is only supported for DH, EC
23 and SM2 keys. Other providers may support this for additional key
24 types.
25
27 EVP_PKEY_get_group_name() returns 1 if the group name could be filled
28 in, otherwise 0.
29
31 This function was added in OpenSSL 3.0.
32
34 Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
35
36 Licensed under the Apache License 2.0 (the "License"). You may not use
37 this file except in compliance with the License. You can obtain a copy
38 in the file LICENSE in the source distribution or at
39 <https://www.openssl.org/source/license.html>.
40
41
42
433.0.5 2022-07-05 EVP_PKEY_GET_GROUP_NAME(3ossl)