Searched refs:BLAKE2S_BLOCKBYTES (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython3/Modules/_blake2/impl/ |
D | blake2sp.c | 103 uint8_t block[BLAKE2S_BLOCKBYTES]; in blake2sp_init_key() 104 memset( block, 0, BLAKE2S_BLOCKBYTES ); in blake2sp_init_key() 108 blake2s_update( S->S[i], block, BLAKE2S_BLOCKBYTES ); in blake2sp_init_key() 110 secure_zero_memory( block, BLAKE2S_BLOCKBYTES ); /* Burn the key from stack */ in blake2sp_init_key() 126 blake2s_update( S->S[i], S->buf + i * BLAKE2S_BLOCKBYTES, BLAKE2S_BLOCKBYTES ); in blake2sp_update() 145 in__ += id__ * BLAKE2S_BLOCKBYTES; in blake2sp_update() 147 while( inlen__ >= PARALLELISM_DEGREE * BLAKE2S_BLOCKBYTES ) in blake2sp_update() 149 blake2s_update( S->S[id__], in__, BLAKE2S_BLOCKBYTES ); in blake2sp_update() 150 in__ += PARALLELISM_DEGREE * BLAKE2S_BLOCKBYTES; in blake2sp_update() 151 inlen__ -= PARALLELISM_DEGREE * BLAKE2S_BLOCKBYTES; in blake2sp_update() [all …]
|
D | blake2s.c | 256 uint8_t block[BLAKE2S_BLOCKBYTES]; in blake2s_init_key() 257 memset( block, 0, BLAKE2S_BLOCKBYTES ); in blake2s_init_key() 259 blake2s_update( S, block, BLAKE2S_BLOCKBYTES ); in blake2s_init_key() 260 secure_zero_memory( block, BLAKE2S_BLOCKBYTES ); /* Burn the key from stack */ in blake2s_init_key() 266 static inline int blake2s_compress( blake2s_state *S, const uint8_t block[BLAKE2S_BLOCKBYTES] ) in blake2s_compress() argument 329 size_t fill = 2 * BLAKE2S_BLOCKBYTES - left; in blake2s_update() 335 blake2s_increment_counter( S, BLAKE2S_BLOCKBYTES ); in blake2s_update() 337 memcpy( S->buf, S->buf + BLAKE2S_BLOCKBYTES, BLAKE2S_BLOCKBYTES ); // Shift buffer left in blake2s_update() 338 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_update() 361 if( S->buflen > BLAKE2S_BLOCKBYTES ) in blake2s_final() [all …]
|
D | blake2s-ref.c | 214 uint8_t block[BLAKE2S_BLOCKBYTES]; in blake2s_init_key() 215 memset( block, 0, BLAKE2S_BLOCKBYTES ); in blake2s_init_key() 217 blake2s_update( S, block, BLAKE2S_BLOCKBYTES ); in blake2s_init_key() 218 secure_zero_memory( block, BLAKE2S_BLOCKBYTES ); /* Burn the key from stack */ in blake2s_init_key() 223 static int blake2s_compress( blake2s_state *S, const uint8_t block[BLAKE2S_BLOCKBYTES] ) in blake2s_compress() argument 289 uint32_t fill = 2 * BLAKE2S_BLOCKBYTES - left; in blake2s_update() 295 blake2s_increment_counter( S, BLAKE2S_BLOCKBYTES ); in blake2s_update() 297 memcpy( S->buf, S->buf + BLAKE2S_BLOCKBYTES, BLAKE2S_BLOCKBYTES ); // Shift buffer left in blake2s_update() 298 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_update() 321 if( S->buflen > BLAKE2S_BLOCKBYTES ) in blake2s_final() [all …]
|
D | blake2.h | 54 BLAKE2S_BLOCKBYTES = 64, enumerator 91 uint8_t buf[2 * BLAKE2S_BLOCKBYTES]; 127 uint8_t buf[8 * BLAKE2S_BLOCKBYTES];
|
/external/python/cpython3/Modules/_blake2/ |
D | blake2s_impl.c | 210 uint8_t block[BLAKE2S_BLOCKBYTES]; in py_blake2s_new_impl() 359 return PyLong_FromLong(BLAKE2S_BLOCKBYTES); in py_blake2s_get_block_size()
|