1gnutls_pkcs11_token_get_random(3) gnutls gnutls_pkcs11_token_get_random(3)
2
3
4
6 gnutls_pkcs11_token_get_random - API function
7
9 #include <gnutls/pkcs11.h>
10
11 int gnutls_pkcs11_token_get_random(const char * token_url, void * rnd‐
12 data, size_t len);
13
15 const char * token_url
16 A PKCS 11 URL specifying a token
17
18 void * rnddata
19 A pointer to the memory area to be filled with random data
20
21 size_t len The number of bytes of randomness to request
22
24 This function will get random data from the given token. It will store
25 rnddata and fill the memory pointed to by rnddata with len random bytes
26 from the token.
27
29 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative
30 error value.
31
33 Report bugs to <bugs@gnutls.org>.
34 Home page: https://www.gnutls.org
35
36
38 Copyright © 2001- Free Software Foundation, Inc., and others.
39 Copying and distribution of this file, with or without modification,
40 are permitted in any medium without royalty provided the copyright
41 notice and this notice are preserved.
42
44 The full documentation for gnutls is maintained as a Texinfo manual.
45 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
46 visit
47
48 https://www.gnutls.org/manual/
49
50gnutls 3.6.15 gnutls_pkcs11_token_get_random(3)