Lines Matching refs:outlen
190 int blake2s_init( blake2s_state *S, const uint8_t outlen ) in blake2s_init() argument
194 outlen, in blake2s_init()
206 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init()
211 int blake2s_init_key( blake2s_state *S, const uint8_t outlen, const void *key, const uint8_t keylen… in blake2s_init_key() argument
215 outlen, in blake2s_init_key()
228 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init_key()
335 int blake2s_final( blake2s_state *S, uint8_t *out, uint8_t outlen ) in blake2s_final() argument
340 if( outlen > BLAKE2S_OUTBYTES ) in blake2s_final()
362 memcpy( out, buffer, outlen ); in blake2s_final()
367 int blake2s( uint8_t *out, const void *in, const void *key, const uint8_t outlen, const uint64_t in… in blake2s() argument
378 if( !outlen || outlen > BLAKE2S_OUTBYTES ) return -1; in blake2s()
384 if( blake2s_init_key( S, outlen, key, keylen ) < 0 ) return -1; in blake2s()
388 if( blake2s_init( S, outlen ) < 0 ) return -1; in blake2s()
392 blake2s_final( S, out, outlen ); in blake2s()