Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/rand/
Drand.c47 uint8_t partial_block[64]; member
99 memset(state->partial_block, 0, sizeof(state->partial_block)); in RAND_bytes()
108 state->partial_block_used = sizeof(state->partial_block); in RAND_bytes()
113 if (len >= sizeof(state->partial_block)) { in RAND_bytes()
130 if (sizeof(state->partial_block) - state->partial_block_used < len) { in RAND_bytes()
131 CRYPTO_chacha_20(state->partial_block, state->partial_block, in RAND_bytes()
132 sizeof(state->partial_block), state->key, in RAND_bytes()
139 buf[i] ^= state->partial_block[state->partial_block_used++]; in RAND_bytes()