Home
last modified time | relevance | path

Searched refs:BLAKE2S_KEYBYTES (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython3/Modules/_blake2/impl/
Dblake2s-test.c19 uint8_t key[BLAKE2S_KEYBYTES]; in main()
22 for( size_t i = 0; i < BLAKE2S_KEYBYTES; ++i ) in main()
32 if( blake2s( hash, buf, key, BLAKE2S_OUTBYTES, i, BLAKE2S_KEYBYTES ) < 0 || in main()
Dblake2sp-test.c20 uint8_t key[BLAKE2S_KEYBYTES]; in main()
23 for( size_t i = 0; i < BLAKE2S_KEYBYTES; ++i ) in main()
32 if( blake2sp( hash, buf, key, BLAKE2S_OUTBYTES, i, BLAKE2S_KEYBYTES ) < 0 || in main()
Dblake2sp.c87 if( !key || !keylen || keylen > BLAKE2S_KEYBYTES ) return -1; in blake2sp_init_key()
209 if( keylen > BLAKE2S_KEYBYTES ) return -1; in blake2sp()
Dblake2s.c236 if ( ( !key ) || ( !keylen ) || keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s_init_key()
394 if( keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s()
Dblake2s-ref.c197 if ( !key || !keylen || keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s_init_key()
354 if( keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s()
Dblake2.h56 BLAKE2S_KEYBYTES = 32, enumerator
/external/python/cpython3/Modules/_blake2/
Dblake2module.c96 ADD_INT(d, "MAX_KEY_SIZE", BLAKE2S_KEYBYTES); in PyInit__blake2()
101 PyModule_AddIntConstant(m, "BLAKE2S_MAX_KEY_SIZE", BLAKE2S_KEYBYTES); in PyInit__blake2()
Dblake2s_impl.c189 if (key->len > BLAKE2S_KEYBYTES) { in py_blake2s_new_impl()
192 BLAKE2S_KEYBYTES); in py_blake2s_new_impl()