Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_blake2/impl/
Dblake2s.c183 for( i = 0; i < BLAKE2S_OUTBYTES; ++i ) h[i] = v[i] ^ p[i]; in blake2s_init_param()
206 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init()
228 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init_key()
337 uint8_t buffer[BLAKE2S_OUTBYTES] = {0}; in blake2s_final()
340 if( outlen > BLAKE2S_OUTBYTES ) in blake2s_final()
378 if( !outlen || outlen > BLAKE2S_OUTBYTES ) return -1; in blake2s()
399 return blake2s( out, in, NULL, BLAKE2S_OUTBYTES, inlen, 0 ); in crypto_hash()
420 uint8_t hash[BLAKE2S_OUTBYTES]; in main()
422 if( blake2s( hash, buf, key, BLAKE2S_OUTBYTES, i, BLAKE2S_KEYBYTES ) < 0 || in main()
423 0 != memcmp( hash, blake2s_keyed_kat[i], BLAKE2S_OUTBYTES ) ) in main()
Dblake2s-ref.c171 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init()
191 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init_key()
313 uint8_t buffer[BLAKE2S_OUTBYTES] = {0}; in blake2s_final()
316 if( out == NULL || outlen == 0 || outlen > BLAKE2S_OUTBYTES ) in blake2s_final()
354 if( !outlen || outlen > BLAKE2S_OUTBYTES ) return -1; in blake2s()
375 return blake2s( out, in, NULL, BLAKE2S_OUTBYTES, inlen, 0 ); in crypto_hash()
396 uint8_t hash[BLAKE2S_OUTBYTES]; in main()
397 blake2s( hash, buf, key, BLAKE2S_OUTBYTES, i, BLAKE2S_KEYBYTES ); in main()
399 if( 0 != memcmp( hash, blake2s_keyed_kat[i], BLAKE2S_OUTBYTES ) ) in main()
Dblake2.h37 BLAKE2S_OUTBYTES = 32, enumerator
/external/python/cpython3/Modules/_blake2/
Dblake2s_impl.c111 if (digest_size <= 0 || digest_size > BLAKE2S_OUTBYTES) { in py_blake2s_new_impl()
114 BLAKE2S_OUTBYTES); in py_blake2s_new_impl()
194 if (inner_size < 0 || inner_size > BLAKE2S_OUTBYTES) { in py_blake2s_new_impl()
197 BLAKE2S_OUTBYTES); in py_blake2s_new_impl()
321 uint8_t digest[BLAKE2S_OUTBYTES]; in _blake2_blake2s_digest_impl()
342 uint8_t digest[BLAKE2S_OUTBYTES]; in _blake2_blake2s_hexdigest_impl()
Dblake2module.c97 ADD_INT(d, "MAX_DIGEST_SIZE", BLAKE2S_OUTBYTES); in PyInit__blake2()
102 PyModule_AddIntConstant(m, "BLAKE2S_MAX_DIGEST_SIZE", BLAKE2S_OUTBYTES); in PyInit__blake2()
/external/python/cpython3/Modules/_blake2/clinic/
Dblake2s_impl.c.h27 int digest_size = BLAKE2S_OUTBYTES; in py_blake2s_new()