Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_blake2/impl/
Dblake2s.c236 uint8_t block[BLAKE2S_BLOCKBYTES]; in blake2s_init_key()
237 memset( block, 0, BLAKE2S_BLOCKBYTES ); in blake2s_init_key()
239 blake2s_update( S, block, BLAKE2S_BLOCKBYTES ); in blake2s_init_key()
240 secure_zero_memory( block, BLAKE2S_BLOCKBYTES ); /* Burn the key from stack */ in blake2s_init_key()
246 BLAKE2_LOCAL_INLINE(int) blake2s_compress( blake2s_state *S, const uint8_t block[BLAKE2S_BLOCKBYTES in blake2s_compress() argument
309 size_t fill = 2 * BLAKE2S_BLOCKBYTES - left; in blake2s_update()
315 blake2s_increment_counter( S, BLAKE2S_BLOCKBYTES ); in blake2s_update()
317 memcpy( S->buf, S->buf + BLAKE2S_BLOCKBYTES, BLAKE2S_BLOCKBYTES ); /* Shift buffer left */ in blake2s_update()
318 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_update()
346 if( S->buflen > BLAKE2S_BLOCKBYTES ) in blake2s_final()
[all …]
Dblake2s-ref.c210 uint8_t block[BLAKE2S_BLOCKBYTES]; in blake2s_init_key()
211 memset( block, 0, BLAKE2S_BLOCKBYTES ); in blake2s_init_key()
213 blake2s_update( S, block, BLAKE2S_BLOCKBYTES ); in blake2s_init_key()
214 secure_zero_memory( block, BLAKE2S_BLOCKBYTES ); /* Burn the key from stack */ in blake2s_init_key()
219 static int blake2s_compress( blake2s_state *S, const uint8_t block[BLAKE2S_BLOCKBYTES] ) in blake2s_compress() argument
286 size_t fill = 2 * BLAKE2S_BLOCKBYTES - left; in blake2s_update()
292 blake2s_increment_counter( S, BLAKE2S_BLOCKBYTES ); in blake2s_update()
294 memcpy( S->buf, S->buf + BLAKE2S_BLOCKBYTES, BLAKE2S_BLOCKBYTES ); /* Shift buffer left */ in blake2s_update()
295 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_update()
323 if( S->buflen > BLAKE2S_BLOCKBYTES ) in blake2s_final()
[all …]
Dblake2.h36 BLAKE2S_BLOCKBYTES = 64, enumerator
57 uint8_t buf[2 * BLAKE2S_BLOCKBYTES];
76 uint8_t buf[8 * BLAKE2S_BLOCKBYTES];
/external/python/cpython3/Modules/_blake2/
Dblake2s_impl.c225 uint8_t block[BLAKE2S_BLOCKBYTES]; in py_blake2s_new_impl()
374 return PyLong_FromLong(BLAKE2S_BLOCKBYTES); in py_blake2s_get_block_size()