|
ASCON Suite
|
Go to the source code of this file.
Macros | |
| #define | THREAD_LOCAL |
Functions | |
| int | ascon_trng_get_bytes (unsigned char *out, size_t outlen) |
| Escape hatch that allows applications to provide their own interface to the system TRNG when the library does not know how to generate random bytes on its own. More... | |
| int | ascon_trng_generate (unsigned char *out, size_t outlen) |
| Generates a buffer of bytes from the system TRNG source. More... | |
| #define THREAD_LOCAL |
Definition at line 73 of file ascon-trng-none.c.
| int ascon_trng_generate | ( | unsigned char * | out, |
| size_t | outlen | ||
| ) |
Generates a buffer of bytes from the system TRNG source.
| out | Output buffer to be filled with random bytes. |
| outlen | Length of the output buffer in bytes. |
This function should try to generate high quality random data even if it is a little slower.
Definition at line 192 of file ascon-trng-none.c.
| int ascon_trng_get_bytes | ( | unsigned char * | out, |
| size_t | outlen | ||
| ) |
Escape hatch that allows applications to provide their own interface to the system TRNG when the library does not know how to generate random bytes on its own.
| out | Buffer to fill with random bytes. |
| outlen | Number of bytes to provide. |
Definition at line 60 of file ascon-trng-none.c.