Home
last modified time | relevance | path

Searched refs:BLAKE2S_OUTBYTES (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Modules/_blake2/impl/
Dblake2-kat.h24 static const uint8_t blake2s_kat[KAT_LENGTH][BLAKE2S_OUTBYTES] =
1567 static const uint8_t blake2s_keyed_kat[KAT_LENGTH][BLAKE2S_OUTBYTES] =
8244 static const uint8_t blake2sp_kat[KAT_LENGTH][BLAKE2S_OUTBYTES] =
9787 static const uint8_t blake2sp_keyed_kat[KAT_LENGTH][BLAKE2S_OUTBYTES] =
Dblake2sp.c37 P->inner_length = BLAKE2S_OUTBYTES; in blake2sp_init_leaf()
55 P->inner_length = BLAKE2S_OUTBYTES; in blake2sp_init_root()
66 if( !outlen || outlen > BLAKE2S_OUTBYTES ) return -1; in blake2sp_init()
85 if( !outlen || outlen > BLAKE2S_OUTBYTES ) return -1; in blake2sp_init_key()
168 uint8_t hash[PARALLELISM_DEGREE][BLAKE2S_OUTBYTES]; in blake2sp_final()
183 blake2s_final( S->S[i], hash[i], BLAKE2S_OUTBYTES ); in blake2sp_final()
187 blake2s_update( S->R, hash[i], BLAKE2S_OUTBYTES ); in blake2sp_final()
196 uint8_t hash[PARALLELISM_DEGREE][BLAKE2S_OUTBYTES]; in blake2sp()
207 if( !outlen || outlen > BLAKE2S_OUTBYTES ) return -1; in blake2sp()
258 blake2s_final( S[id__], hash[id__], BLAKE2S_OUTBYTES ); in blake2sp()
[all …]
Dblake2sp-test.c31 uint8_t hash[BLAKE2S_OUTBYTES]; in main()
32 if( blake2sp( hash, buf, key, BLAKE2S_OUTBYTES, i, BLAKE2S_KEYBYTES ) < 0 || in main()
33 0 != memcmp( hash, blake2sp_keyed_kat[i], BLAKE2S_OUTBYTES ) ) in main()
Dblake2s-test.c30 uint8_t hash[BLAKE2S_OUTBYTES]; in main()
32 if( blake2s( hash, buf, key, BLAKE2S_OUTBYTES, i, BLAKE2S_KEYBYTES ) < 0 || in main()
33 0 != memcmp( hash, blake2s_keyed_kat[i], BLAKE2S_OUTBYTES ) ) in main()
Dblake2s.c203 for( int i = 0; i < BLAKE2S_OUTBYTES; ++i ) h[i] = v[i] ^ p[i]; in blake2s_init_param()
213 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init()
234 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init_key()
357 uint8_t buffer[BLAKE2S_OUTBYTES]; in blake2s_final()
392 if( !outlen || outlen > BLAKE2S_OUTBYTES ) return -1; in blake2s()
412 return blake2s( out, in, NULL, BLAKE2S_OUTBYTES, (size_t)inlen, 0 ); in crypto_hash()
Dblake2s-ref.c175 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init()
195 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init_key()
316 uint8_t buffer[BLAKE2S_OUTBYTES]; in blake2s_final()
352 if( !outlen || outlen > BLAKE2S_OUTBYTES ) return -1; in blake2s()
Dblake2.h55 BLAKE2S_OUTBYTES = 32, enumerator
/external/python/cpython3/Modules/_blake2/
Dblake2s_impl.c108 if (digest_size <= 0 || digest_size > BLAKE2S_OUTBYTES) { in py_blake2s_new_impl()
111 BLAKE2S_OUTBYTES); in py_blake2s_new_impl()
179 if (inner_size < 0 || inner_size > BLAKE2S_OUTBYTES) { in py_blake2s_new_impl()
182 BLAKE2S_OUTBYTES); in py_blake2s_new_impl()
306 uint8_t digest[BLAKE2S_OUTBYTES]; in _blake2_blake2s_digest_impl()
327 uint8_t digest[BLAKE2S_OUTBYTES]; in _blake2_blake2s_hexdigest_impl()
Dblake2module.c91 ADD_INT(d, "MAX_DIGEST_SIZE", BLAKE2S_OUTBYTES); in PyInit__blake2()
96 PyModule_AddIntConstant(m, "BLAKE2S_MAX_DIGEST_SIZE", BLAKE2S_OUTBYTES); in PyInit__blake2()
/external/python/cpython3/Modules/_blake2/clinic/
Dblake2s_impl.c.h32 int digest_size = BLAKE2S_OUTBYTES; in py_blake2s_new()