|
iPXE
|
HMAC_DRBG algorithm. More...
#include <stdint.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| int | get_random_nz (void *data, size_t len) |
| Get random non-zero bytes. More... | |
HMAC_DRBG algorithm.
Definition in file random_nz.h.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| int get_random_nz | ( | void * | data, |
| size_t | len | ||
| ) |
Get random non-zero bytes.
| data | Output buffer |
| len | Length of output buffer |
| rc | Return status code |
This algorithm is designed to be isomorphic to the Simple Discard Method described in ANS X9.82 Part 1-2006 Section 9.2.1 (NIST SP 800-90 Section B.5.1.1).
Definition at line 62 of file random_nz.c.
References bytes, data, len, NULL, rbg_generate(), and rc.
Referenced by rsa_encrypt().
1.8.15