Lines Matching refs:BLAKE2B_OUTBYTES
106 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init()
128 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init_key()
254 uint8_t buffer[BLAKE2B_OUTBYTES] = {0}; in blake2b_final()
288 if( !outlen || outlen > BLAKE2B_OUTBYTES ) return -1; in blake2b()
313 return blake2b( out, BLAKE2B_OUTBYTES, in, inlen, NULL, 0 ); in crypto_hash()
335 uint8_t hash[BLAKE2B_OUTBYTES]; in main()
336 blake2b( hash, BLAKE2B_OUTBYTES, buf, i, key, BLAKE2B_KEYBYTES ); in main()
338 if( 0 != memcmp( hash, blake2b_keyed_kat[i], BLAKE2B_OUTBYTES ) ) in main()
347 uint8_t hash[BLAKE2B_OUTBYTES]; in main()
353 if( (err = blake2b_init_key(&S, BLAKE2B_OUTBYTES, key, BLAKE2B_KEYBYTES)) < 0 ) { in main()
367 if ( (err = blake2b_final(&S, hash, BLAKE2B_OUTBYTES)) < 0) { in main()
371 if (0 != memcmp(hash, blake2b_keyed_kat[i], BLAKE2B_OUTBYTES)) { in main()