Home
last modified time | relevance | path

Searched refs:prng (Results 1 – 2 of 2) sorted by relevance

/tinycrypt-3.7.0/lib/source/
Dhmac_prng.c78 static void update(TCHmacPrng_t prng, const uint8_t *data, unsigned int datalen, const uint8_t *add… in update() argument
84 tc_hmac_set_key(&prng->h, prng->key, sizeof(prng->key)); in update()
87 (void)tc_hmac_init(&prng->h); in update()
88 (void)tc_hmac_update(&prng->h, prng->v, sizeof(prng->v)); in update()
89 (void)tc_hmac_update(&prng->h, &separator0, sizeof(separator0)); in update()
92 (void)tc_hmac_update(&prng->h, data, datalen); in update()
94 (void)tc_hmac_update(&prng->h, additional_data, additional_datalen); in update()
96 (void)tc_hmac_final(prng->key, sizeof(prng->key), &prng->h); in update()
99 (void)tc_hmac_set_key(&prng->h, prng->key, sizeof(prng->key)); in update()
102 (void)tc_hmac_init(&prng->h); in update()
[all …]
/tinycrypt-3.7.0/lib/include/tinycrypt/
Dhmac_prng.h115 int tc_hmac_prng_init(TCHmacPrng_t prng,
139 int tc_hmac_prng_reseed(TCHmacPrng_t prng, const uint8_t *seed,
158 int tc_hmac_prng_generate(uint8_t *out, unsigned int outlen, TCHmacPrng_t prng);