Home
last modified time | relevance | path

Searched refs:BLAKE2S_BLOCKBYTES (Results 1 – 15 of 15) 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/providers/implementations/digests/
Dblake2s_prov.c136 uint8_t block[BLAKE2S_BLOCKBYTES] = {0}; in ossl_blake2s_init_key()
139 ossl_blake2s_update(c, block, BLAKE2S_BLOCKBYTES); in ossl_blake2s_init_key()
140 OPENSSL_cleanse(block, BLAKE2S_BLOCKBYTES); in ossl_blake2s_init_key()
166 assert(len < BLAKE2S_BLOCKBYTES || len % BLAKE2S_BLOCKBYTES == 0); in blake2s_compress()
175 increment = len < BLAKE2S_BLOCKBYTES ? len : BLAKE2S_BLOCKBYTES; in blake2s_compress()
266 blake2s_compress(c, c->buf, BLAKE2S_BLOCKBYTES); in ossl_blake2s_update()
271 if (datalen > BLAKE2S_BLOCKBYTES) { in ossl_blake2s_update()
272 size_t stashlen = datalen % BLAKE2S_BLOCKBYTES; in ossl_blake2s_update()
277 stashlen = stashlen ? stashlen : BLAKE2S_BLOCKBYTES; in ossl_blake2s_update()
285 assert(datalen <= BLAKE2S_BLOCKBYTES); in ossl_blake2s_update()
Dblake2_prov.c33 BLAKE2S_BLOCKBYTES, BLAKE2S_DIGEST_LENGTH, 0,
/third_party/node/deps/openssl/openssl/providers/implementations/digests/
Dblake2s_prov.c136 uint8_t block[BLAKE2S_BLOCKBYTES] = {0}; in ossl_blake2s_init_key()
139 ossl_blake2s_update(c, block, BLAKE2S_BLOCKBYTES); in ossl_blake2s_init_key()
140 OPENSSL_cleanse(block, BLAKE2S_BLOCKBYTES); in ossl_blake2s_init_key()
166 assert(len < BLAKE2S_BLOCKBYTES || len % BLAKE2S_BLOCKBYTES == 0); in blake2s_compress()
175 increment = len < BLAKE2S_BLOCKBYTES ? len : BLAKE2S_BLOCKBYTES; in blake2s_compress()
266 blake2s_compress(c, c->buf, BLAKE2S_BLOCKBYTES); in ossl_blake2s_update()
271 if (datalen > BLAKE2S_BLOCKBYTES) { in ossl_blake2s_update()
272 size_t stashlen = datalen % BLAKE2S_BLOCKBYTES; in ossl_blake2s_update()
277 stashlen = stashlen ? stashlen : BLAKE2S_BLOCKBYTES; in ossl_blake2s_update()
285 assert(datalen <= BLAKE2S_BLOCKBYTES); in ossl_blake2s_update()
Dblake2_prov.c33 BLAKE2S_BLOCKBYTES, BLAKE2S_DIGEST_LENGTH, 0,
/third_party/node/deps/openssl/openssl/providers/implementations/include/prov/
Dblake2.h18 # define BLAKE2S_BLOCKBYTES 64 macro
49 uint8_t buf[BLAKE2S_BLOCKBYTES];
/third_party/openssl/providers/implementations/include/prov/
Dblake2.h18 # define BLAKE2S_BLOCKBYTES 64 macro
49 uint8_t buf[BLAKE2S_BLOCKBYTES];
/third_party/openssl/providers/implementations/macs/
Dblake2s_mac.c17 #define BLAKE2_BLOCKBYTES BLAKE2S_BLOCKBYTES
/third_party/node/deps/openssl/openssl/providers/implementations/macs/
Dblake2s_mac.c17 #define BLAKE2_BLOCKBYTES BLAKE2S_BLOCKBYTES
/third_party/node/deps/openssl/openssl/crypto/evp/
Dlegacy_blake2.c42 blake2s_int_final, NULL, BLAKE2S_BLOCKBYTES),
/third_party/openssl/crypto/evp/
Dlegacy_blake2.c42 blake2s_int_final, NULL, 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()