| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_pkcs11_token_get_random} (const char * @var{token_url}, void * @var{rnddata}, size_t @var{len}) |
| 6 |
@var{token_url}: A PKCS @code{11} URL specifying a token |
| 7 |
|
| 8 |
@var{rnddata}: A pointer to the memory area to be filled with random data |
| 9 |
|
| 10 |
@var{len}: The number of bytes of randomness to request |
| 11 |
|
| 12 |
This function will get random data from the given token. |
| 13 |
It will store rnddata and fill the memory pointed to by rnddata with |
| 14 |
len random bytes from the token. |
| 15 |
|
| 16 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 17 |
negative error value. |
| 18 |
@end deftypefun |