Searched refs:BLAKE2S_OUTBYTES (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython3/Modules/_blake2/impl/ |
D | blake2-kat.h | 24 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] =
|
D | blake2sp.c | 37 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 …]
|
D | blake2sp-test.c | 31 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()
|
D | blake2s-test.c | 30 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()
|
D | blake2s.c | 203 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()
|
D | blake2s-ref.c | 175 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()
|
D | blake2.h | 55 BLAKE2S_OUTBYTES = 32, enumerator
|
/external/python/cpython3/Modules/_blake2/ |
D | blake2s_impl.c | 108 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()
|
D | blake2module.c | 91 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/ |
D | blake2s_impl.c.h | 32 int digest_size = BLAKE2S_OUTBYTES; in py_blake2s_new()
|