Lines Matching refs:outlen
203 int blake2b_init( blake2b_state *S, const uint8_t outlen ) in blake2b_init() argument
207 outlen, in blake2b_init()
220 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init()
225 int blake2b_init_key( blake2b_state *S, const uint8_t outlen, const void *key, const uint8_t keylen… in blake2b_init_key() argument
229 outlen, in blake2b_init_key()
242 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init_key()
361 int blake2b_final( blake2b_state *S, uint8_t *out, uint8_t outlen ) in blake2b_final() argument
363 if( outlen > BLAKE2B_OUTBYTES ) in blake2b_final()
381 memcpy( out, &S->h[0], outlen ); in blake2b_final()
386 int blake2b( uint8_t *out, const void *in, const void *key, const uint8_t outlen, const uint64_t in… in blake2b() argument
397 if( !outlen || outlen > BLAKE2B_OUTBYTES ) return -1; in blake2b()
403 if( blake2b_init_key( S, outlen, key, keylen ) < 0 ) return -1; in blake2b()
407 if( blake2b_init( S, outlen ) < 0 ) return -1; in blake2b()
411 blake2b_final( S, out, outlen ); in blake2b()