1gnutls_pkcs11_privkey_generate(3) gnutls gnutls_pkcs11_privkey_generate(3)
2
3
4
6 gnutls_pkcs11_privkey_generate - API function
7
9 #include <gnutls/pkcs11.h>
10
11 int gnutls_pkcs11_privkey_generate(const char * url, gnutls_pk_algo‐
12 rithm_t pk, unsigned int bits, const char * label, unsigned int flags);
13
15 const char * url
16 a token URL
17
18 gnutls_pk_algorithm_t pk
19 the public key algorithm
20
21 unsigned int bits
22 the security bits
23
24 const char * label
25 a label
26
27 unsigned int flags
28 should be zero
29
31 This function will generate a private key in the specified by the url
32 token. The private key will be generate within the token and will not
33 be exportable.
34
36 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
37 ror value.
38
40 3.0
41
43 Report bugs to <bugs@gnutls.org>.
44 Home page: https://www.gnutls.org
45
46
48 Copyright © 2001-2023 Free Software Foundation, Inc., and others.
49 Copying and distribution of this file, with or without modification,
50 are permitted in any medium without royalty provided the copyright no‐
51 tice and this notice are preserved.
52
54 The full documentation for gnutls is maintained as a Texinfo manual.
55 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
56 visit
57
58 https://www.gnutls.org/manual/
59
60gnutls 3.8.2 gnutls_pkcs11_privkey_generate(3)