GME
13
|
Classes | |
struct | apr_crypto_hash_t |
Typedefs | |
typedef struct apr_crypto_hash_t | apr_crypto_hash_t |
typedef void | apr_crypto_hash_init_t (apr_crypto_hash_t *hash) |
typedef void | apr_crypto_hash_add_t (apr_crypto_hash_t *hash, const void *data, apr_size_t bytes) |
typedef void | apr_crypto_hash_finish_t (apr_crypto_hash_t *hash, unsigned char *result) |
typedef struct apr_random_t | apr_random_t |
Functions | |
APR_DECLARE (apr_crypto_hash_t *) apr_crypto_sha256_new(apr_pool_t *p) | |
APR_DECLARE (void) apr_random_init(apr_random_t *g | |
APR_DECLARE (apr_random_t *) apr_random_standard_new(apr_pool_t *p) | |
APR_DECLARE (apr_status_t) apr_random_insecure_bytes(apr_random_t *g | |
Variables | |
apr_pool_t * | p |
apr_pool_t apr_crypto_hash_t * | pool_hash |
apr_pool_t apr_crypto_hash_t apr_crypto_hash_t * | key_hash |
apr_pool_t apr_crypto_hash_t apr_crypto_hash_t apr_crypto_hash_t * | prng_hash |
const void * | entropy_ |
const void apr_size_t | bytes |
void * | random |
typedef void apr_crypto_hash_add_t(apr_crypto_hash_t *hash, const void *data, apr_size_t bytes) |
Definition at line 41 of file apr_random.h.
typedef void apr_crypto_hash_finish_t(apr_crypto_hash_t *hash, unsigned char *result) |
Definition at line 43 of file apr_random.h.
typedef void apr_crypto_hash_init_t(apr_crypto_hash_t *hash) |
Definition at line 40 of file apr_random.h.
typedef struct apr_crypto_hash_t apr_crypto_hash_t |
Definition at line 38 of file apr_random.h.
typedef struct apr_random_t apr_random_t |
Opaque PRNG structure.
Definition at line 63 of file apr_random.h.
APR_DECLARE | ( | apr_crypto_hash_t * | ) |
Allocate and initialize the SHA-256 context
p | The pool to allocate from |
APR_DECLARE | ( | void | ) |
Initialize a PRNG state
g | The PRNG state |
p | The pool to allocate from |
pool_hash | Pool hash functions |
key_hash | Key hash functions |
prng_hash | PRNG hash functions |
Mix the randomness pools.
g | The PRNG state |
entropy_ | Entropy buffer |
bytes | Length of entropy_ in bytes |
Ensures that E bits of conditional entropy are mixed into the PRNG before any further randomness is extracted.
g | The RNG state |
Mix the randomness pools after forking.
proc | The resulting process handle from apr_proc_fork() |
APR_DECLARE | ( | apr_random_t * | ) |
Allocate and initialize (apr_crypto_sha256_new) a new PRNG state.
p | The pool to allocate from |
Generate cryptographically insecure random bytes.
g | The RNG state |
random | Buffer to fill with random bytes |
bytes | Length of buffer in bytes |
Generate cryptographically secure random bytes.
g | The RNG state |
random | Buffer to fill with random bytes |
bytes | Length of buffer in bytes |
Return APR_SUCCESS if the cryptographic PRNG has been seeded with enough data, APR_ENOTENOUGHENTROPY otherwise.
r | The RNG state |
Return APR_SUCCESS if the PRNG has been seeded with enough data, APR_ENOTENOUGHENTROPY otherwise.
r | The PRNG state |
void apr_size_t bytes |
Definition at line 90 of file apr_random.h.
const void* entropy_ |
Definition at line 90 of file apr_random.h.
Definition at line 73 of file apr_random.h.
Definition at line 73 of file apr_random.h.
Definition at line 73 of file apr_random.h.
Definition at line 73 of file apr_random.h.
apr_pool_t apr_dbd_t int apr_dbd_prepared_t apr_pool_t apr_dbd_t apr_dbd_results_t apr_dbd_prepared_t int random |
Definition at line 99 of file apr_random.h.