Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_blake2/impl/
Dblake2b-ref.c217 uint8_t block[BLAKE2B_BLOCKBYTES]; in blake2b_init_key()
218 memset( block, 0, BLAKE2B_BLOCKBYTES ); in blake2b_init_key()
220 blake2b_update( S, block, BLAKE2B_BLOCKBYTES ); in blake2b_init_key()
221 secure_zero_memory( block, BLAKE2B_BLOCKBYTES ); /* Burn the key from stack */ in blake2b_init_key()
226 static int blake2b_compress( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES] ) in blake2b_compress() argument
295 size_t fill = 2 * BLAKE2B_BLOCKBYTES - left; in blake2b_update()
301 blake2b_increment_counter( S, BLAKE2B_BLOCKBYTES ); in blake2b_update()
303 memcpy( S->buf, S->buf + BLAKE2B_BLOCKBYTES, BLAKE2B_BLOCKBYTES ); /* Shift buffer left */ in blake2b_update()
304 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_update()
332 if( S->buflen > BLAKE2B_BLOCKBYTES ) in blake2b_final()
[all …]
Dblake2b.c250 uint8_t block[BLAKE2B_BLOCKBYTES]; in blake2b_init_key()
251 memset( block, 0, BLAKE2B_BLOCKBYTES ); in blake2b_init_key()
253 blake2b_update( S, block, BLAKE2B_BLOCKBYTES ); in blake2b_init_key()
254 secure_zero_memory( block, BLAKE2B_BLOCKBYTES ); /* Burn the key from stack */ in blake2b_init_key()
259 BLAKE2_LOCAL_INLINE(int) blake2b_compress( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES in blake2b_compress() argument
335 size_t fill = 2 * BLAKE2B_BLOCKBYTES - left; in blake2b_update()
341 blake2b_increment_counter( S, BLAKE2B_BLOCKBYTES ); in blake2b_update()
343 memcpy( S->buf, S->buf + BLAKE2B_BLOCKBYTES, BLAKE2B_BLOCKBYTES ); /* Shift buffer left */ in blake2b_update()
344 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_update()
369 if( S->buflen > BLAKE2B_BLOCKBYTES ) in blake2b_final()
[all …]
Dblake2.h45 BLAKE2B_BLOCKBYTES = 128, enumerator
67 uint8_t buf[2 * BLAKE2B_BLOCKBYTES];
84 uint8_t buf[4 * BLAKE2B_BLOCKBYTES];
/external/python/cpython3/Modules/_blake2/
Dblake2b_impl.c225 uint8_t block[BLAKE2B_BLOCKBYTES]; in py_blake2b_new_impl()
374 return PyLong_FromLong(BLAKE2B_BLOCKBYTES); in py_blake2b_get_block_size()