|
static void | arr_add (uint8_t *arr1, size_t arr1_len, uint8_t *arr2, size_t arr2_len) |
|
static void | store_be32 (uint32_t val, uint8_t be[4]) |
|
static void | Hash_df (uint8_t *input_string, size_t input_string_len, uint8_t *output_string, size_t no_of_bytes_to_return) |
|
static void | Hash_DRBG_Instantiate (Hash_DRBG_CTX *ctx, uint8_t *entropy_input, size_t entropy_input_len, uint8_t *nonce, size_t nonce_len) |
|
static void | Hash_DRBG_Reseed (Hash_DRBG_CTX *ctx, uint8_t *entropy_input, size_t entropy_input_len) |
|
static void | Hashgen (uint8_t *V, uint8_t *output, size_t requested_number_of_bytes) |
|
static int | Hash_DRBG_Generate (Hash_DRBG_CTX *ctx, uint8_t *output, size_t requested_number_of_bytes) |
|
static void | xmpp_rand_reseed (xmpp_rand_t *rand) |
|
xmpp_rand_t * | xmpp_rand_new (xmpp_ctx_t *ctx) |
| Create new xmpp_rand_t object. More...
|
|
void | xmpp_rand_free (xmpp_ctx_t *ctx, xmpp_rand_t *rand) |
| Destroy an xmpp_rand_t object. More...
|
|
void | xmpp_rand_bytes (xmpp_rand_t *rand, unsigned char *output, size_t len) |
| Generate random bytes. More...
|
|
int | xmpp_rand (xmpp_rand_t *rand) |
| Generate random integer. More...
|
|
static void | rand_byte2hex (unsigned char byte, char *hex) |
|
void | xmpp_rand_nonce (xmpp_rand_t *rand, char *output, size_t len) |
| Generate a nonce that is printable randomized string. More...
|
|
Pseudo-random number generator.
Implemented Hash_DRBG mechanism according to NIST SP 800-90A. Hash function is SHA1.