Home
last modified time | relevance | path

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

/third_party/python/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];
/third_party/openssl/crypto/blake2/
Dblake2b.c120 assert(len < BLAKE2B_BLOCKBYTES || len % BLAKE2B_BLOCKBYTES == 0); in blake2b_compress()
129 increment = len < BLAKE2B_BLOCKBYTES ? len : BLAKE2B_BLOCKBYTES; in blake2b_compress()
222 blake2b_compress(c, c->buf, BLAKE2B_BLOCKBYTES); in BLAKE2b_Update()
227 if (datalen > BLAKE2B_BLOCKBYTES) { in BLAKE2b_Update()
228 size_t stashlen = datalen % BLAKE2B_BLOCKBYTES; in BLAKE2b_Update()
233 stashlen = stashlen ? stashlen : BLAKE2B_BLOCKBYTES; in BLAKE2b_Update()
241 assert(datalen <= BLAKE2B_BLOCKBYTES); in BLAKE2b_Update()
Dblake2_local.h25 #define BLAKE2B_BLOCKBYTES 128 macro
74 uint8_t buf[BLAKE2B_BLOCKBYTES];
Dm_blake2b.c51 BLAKE2B_BLOCKBYTES,
/third_party/python/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()