Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/rand/
Drand.c50 uint8_t partial_block[64]; member
140 memset(state->partial_block, 0, sizeof(state->partial_block)); in RAND_bytes()
149 state->partial_block_used = sizeof(state->partial_block); in RAND_bytes()
152 if (len >= sizeof(state->partial_block)) { in RAND_bytes()
171 if (sizeof(state->partial_block) - state->partial_block_used < len) { in RAND_bytes()
175 CRYPTO_chacha_20(state->partial_block, state->partial_block, in RAND_bytes()
176 sizeof(state->partial_block), state->key, nonce, 0); in RAND_bytes()
182 buf[i] ^= state->partial_block[state->partial_block_used++]; in RAND_bytes()