Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_blake2/impl/
Dblake2bp.c106 uint8_t block[BLAKE2B_BLOCKBYTES]; in blake2bp_init_key()
107 memset( block, 0, BLAKE2B_BLOCKBYTES ); in blake2bp_init_key()
111 blake2b_update( S->S[i], block, BLAKE2B_BLOCKBYTES ); in blake2bp_init_key()
113 secure_zero_memory( block, BLAKE2B_BLOCKBYTES ); /* Burn the key from stack */ in blake2bp_init_key()
129 blake2b_update( S->S[i], S->buf + i * BLAKE2B_BLOCKBYTES, BLAKE2B_BLOCKBYTES ); in blake2bp_update()
148 in__ += id__ * BLAKE2B_BLOCKBYTES; in blake2bp_update()
150 while( inlen__ >= PARALLELISM_DEGREE * BLAKE2B_BLOCKBYTES ) in blake2bp_update()
152 blake2b_update( S->S[id__], in__, BLAKE2B_BLOCKBYTES ); in blake2bp_update()
153 in__ += PARALLELISM_DEGREE * BLAKE2B_BLOCKBYTES; in blake2bp_update()
154 inlen__ -= PARALLELISM_DEGREE * BLAKE2B_BLOCKBYTES; in blake2bp_update()
[all …]
Dblake2b-ref.c221 uint8_t block[BLAKE2B_BLOCKBYTES]; in blake2b_init_key()
222 memset( block, 0, BLAKE2B_BLOCKBYTES ); in blake2b_init_key()
224 blake2b_update( S, block, BLAKE2B_BLOCKBYTES ); in blake2b_init_key()
225 secure_zero_memory( block, BLAKE2B_BLOCKBYTES ); /* Burn the key from stack */ in blake2b_init_key()
230 static int blake2b_compress( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES] ) in blake2b_compress() argument
299 uint32_t fill = 2 * BLAKE2B_BLOCKBYTES - left; in blake2b_update()
305 blake2b_increment_counter( S, BLAKE2B_BLOCKBYTES ); in blake2b_update()
307 memcpy( S->buf, S->buf + BLAKE2B_BLOCKBYTES, BLAKE2B_BLOCKBYTES ); // Shift buffer left in blake2b_update()
308 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_update()
331 if( S->buflen > BLAKE2B_BLOCKBYTES ) in blake2b_final()
[all …]
Dblake2b.c271 uint8_t block[BLAKE2B_BLOCKBYTES]; in blake2b_init_key()
272 memset( block, 0, BLAKE2B_BLOCKBYTES ); in blake2b_init_key()
274 blake2b_update( S, block, BLAKE2B_BLOCKBYTES ); in blake2b_init_key()
275 secure_zero_memory( block, BLAKE2B_BLOCKBYTES ); /* Burn the key from stack */ in blake2b_init_key()
280 static inline int blake2b_compress( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES] ) in blake2b_compress() argument
356 uint32_t fill = 2 * BLAKE2B_BLOCKBYTES - left; in blake2b_update()
362 blake2b_increment_counter( S, BLAKE2B_BLOCKBYTES ); in blake2b_update()
364 memcpy( S->buf, S->buf + BLAKE2B_BLOCKBYTES, BLAKE2B_BLOCKBYTES ); // Shift buffer left in blake2b_update()
365 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_update()
386 if( S->buflen > BLAKE2B_BLOCKBYTES ) in blake2b_final()
[all …]
Dblake2.h63 BLAKE2B_BLOCKBYTES = 128, enumerator
117 uint8_t buf[2 * BLAKE2B_BLOCKBYTES];
136 uint8_t buf[4 * BLAKE2B_BLOCKBYTES];
/external/python/cpython3/Modules/_blake2/
Dblake2b_impl.c210 uint8_t block[BLAKE2B_BLOCKBYTES]; in py_blake2b_new_impl()
359 return PyLong_FromLong(BLAKE2B_BLOCKBYTES); in py_blake2b_get_block_size()