Home
last modified time | relevance | path

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

/third_party/python/Modules/_blake2/impl/
Dblake2sp.c103 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 …]
Dblake2s.c256 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 …]
Dblake2s-ref.c214 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 …]
Dblake2.h54 BLAKE2S_BLOCKBYTES = 64, enumerator
91 uint8_t buf[2 * BLAKE2S_BLOCKBYTES];
127 uint8_t buf[8 * BLAKE2S_BLOCKBYTES];
/third_party/openssl/crypto/blake2/
Dblake2s.c116 assert(len < BLAKE2S_BLOCKBYTES || len % BLAKE2S_BLOCKBYTES == 0); in blake2s_compress()
125 increment = len < BLAKE2S_BLOCKBYTES ? len : BLAKE2S_BLOCKBYTES; in blake2s_compress()
216 blake2s_compress(c, c->buf, BLAKE2S_BLOCKBYTES); in BLAKE2s_Update()
221 if (datalen > BLAKE2S_BLOCKBYTES) { in BLAKE2s_Update()
222 size_t stashlen = datalen % BLAKE2S_BLOCKBYTES; in BLAKE2s_Update()
227 stashlen = stashlen ? stashlen : BLAKE2S_BLOCKBYTES; in BLAKE2s_Update()
235 assert(datalen <= BLAKE2S_BLOCKBYTES); in BLAKE2s_Update()
Dblake2_local.h19 #define BLAKE2S_BLOCKBYTES 64 macro
50 uint8_t buf[BLAKE2S_BLOCKBYTES];
Dm_blake2s.c51 BLAKE2S_BLOCKBYTES,
/third_party/python/Modules/_blake2/
Dblake2s_impl.c209 uint8_t block[BLAKE2S_BLOCKBYTES]; in py_blake2s_new_impl()
358 return PyLong_FromLong(BLAKE2S_BLOCKBYTES); in py_blake2s_get_block_size()