Searched refs:BLAKE2S_BLOCKBYTES (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Modules/_blake2/impl/ |
D | blake2s.c | 236 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 …]
|
D | blake2s-ref.c | 210 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 …]
|
D | blake2.h | 36 BLAKE2S_BLOCKBYTES = 64, enumerator 57 uint8_t buf[2 * BLAKE2S_BLOCKBYTES]; 76 uint8_t buf[8 * BLAKE2S_BLOCKBYTES];
|
/external/python/cpython3/Modules/_blake2/ |
D | blake2s_impl.c | 225 uint8_t block[BLAKE2S_BLOCKBYTES]; in py_blake2s_new_impl() 374 return PyLong_FromLong(BLAKE2S_BLOCKBYTES); in py_blake2s_get_block_size()
|