Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_blake2/impl/
Dblake2-kat.h3110 static const uint8_t blake2b_kat[KAT_LENGTH][BLAKE2B_OUTBYTES] =
5677 static const uint8_t blake2b_keyed_kat[KAT_LENGTH][BLAKE2B_OUTBYTES] =
11330 static const uint8_t blake2bp_kat[KAT_LENGTH][BLAKE2B_OUTBYTES] =
13897 static const uint8_t blake2bp_keyed_kat[KAT_LENGTH][BLAKE2B_OUTBYTES] =
Dblake2bp.c38 P->inner_length = BLAKE2B_OUTBYTES; in blake2bp_init_leaf()
57 P->inner_length = BLAKE2B_OUTBYTES; in blake2bp_init_root()
69 if( !outlen || outlen > BLAKE2B_OUTBYTES ) return -1; in blake2bp_init()
88 if( !outlen || outlen > BLAKE2B_OUTBYTES ) return -1; in blake2bp_init_key()
172 uint8_t hash[PARALLELISM_DEGREE][BLAKE2B_OUTBYTES]; in blake2bp_final()
187 blake2b_final( S->S[i], hash[i], BLAKE2B_OUTBYTES ); in blake2bp_final()
191 blake2b_update( S->R, hash[i], BLAKE2B_OUTBYTES ); in blake2bp_final()
198 uint8_t hash[PARALLELISM_DEGREE][BLAKE2B_OUTBYTES]; in blake2bp()
209 if( !outlen || outlen > BLAKE2B_OUTBYTES ) return -1; in blake2bp()
259 blake2b_final( S[id__], hash[id__], BLAKE2B_OUTBYTES ); in blake2bp()
[all …]
Dblake2b-test.c30 uint8_t hash[BLAKE2B_OUTBYTES]; in main()
32 if( blake2b( hash, buf, key, BLAKE2B_OUTBYTES, i, BLAKE2B_KEYBYTES ) < 0 || in main()
33 0 != memcmp( hash, blake2b_keyed_kat[i], BLAKE2B_OUTBYTES ) ) in main()
Dblake2bp-test.c31 uint8_t hash[BLAKE2B_OUTBYTES]; in main()
33 if( blake2bp( hash, buf, key, BLAKE2B_OUTBYTES, i, BLAKE2B_KEYBYTES ) < 0 || in main()
34 0 != memcmp( hash, blake2bp_keyed_kat[i], BLAKE2B_OUTBYTES ) ) in main()
Dblake2b.c216 for( int i = 0; i < BLAKE2B_OUTBYTES; ++i ) h[i] = v[i] ^ p[i]; in blake2b_init_param()
227 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init()
248 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init_key()
414 if( !outlen || outlen > BLAKE2B_OUTBYTES ) return -1; in blake2b()
434 return blake2b( out, in, NULL, BLAKE2B_OUTBYTES, inlen, 0 ); in crypto_hash()
Dblake2b-ref.c181 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init()
202 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init_key()
326 uint8_t buffer[BLAKE2B_OUTBYTES]; in blake2b_final()
362 if( !outlen || outlen > BLAKE2B_OUTBYTES ) return -1; in blake2b()
Dblake2.h64 BLAKE2B_OUTBYTES = 64, enumerator
/external/python/cpython3/Modules/_blake2/
Dblake2b_impl.c108 if (digest_size <= 0 || digest_size > BLAKE2B_OUTBYTES) { in py_blake2b_new_impl()
111 BLAKE2B_OUTBYTES); in py_blake2b_new_impl()
179 if (inner_size < 0 || inner_size > BLAKE2B_OUTBYTES) { in py_blake2b_new_impl()
182 BLAKE2B_OUTBYTES); in py_blake2b_new_impl()
306 uint8_t digest[BLAKE2B_OUTBYTES]; in _blake2_blake2b_digest_impl()
327 uint8_t digest[BLAKE2B_OUTBYTES]; in _blake2_blake2b_hexdigest_impl()
Dblake2module.c74 ADD_INT(d, "MAX_DIGEST_SIZE", BLAKE2B_OUTBYTES); in PyInit__blake2()
79 PyModule_AddIntConstant(m, "BLAKE2B_MAX_DIGEST_SIZE", BLAKE2B_OUTBYTES); in PyInit__blake2()
/external/python/cpython3/Modules/_blake2/clinic/
Dblake2b_impl.c.h32 int digest_size = BLAKE2B_OUTBYTES; in py_blake2b_new()