Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_blake2/impl/
Dblake2s.c230 if ( ( !key ) || ( !keylen ) || keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s_init_key()
380 if( keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s()
408 uint8_t key[BLAKE2S_KEYBYTES]; in main()
412 for( i = 0; i < BLAKE2S_KEYBYTES; ++i ) in main()
422 if( blake2s( hash, buf, key, BLAKE2S_OUTBYTES, i, BLAKE2S_KEYBYTES ) < 0 || in main()
Dblake2s-ref.c193 if ( !key || !keylen || keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s_init_key()
356 if( keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s()
384 uint8_t key[BLAKE2S_KEYBYTES]; in main()
388 for( i = 0; i < BLAKE2S_KEYBYTES; ++i ) in main()
397 blake2s( hash, buf, key, BLAKE2S_OUTBYTES, i, BLAKE2S_KEYBYTES ); in main()
Dblake2.h38 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.c204 if (key->len > BLAKE2S_KEYBYTES) { in py_blake2s_new_impl()
207 BLAKE2S_KEYBYTES); in py_blake2s_new_impl()