Lines Matching refs:outlen
166 int blake2s_init( blake2s_state *S, const uint8_t outlen ) in blake2s_init() argument
171 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init()
173 P->digest_length = outlen; in blake2s_init()
187 int blake2s_init_key( blake2s_state *S, const uint8_t outlen, const void *key, const uint8_t keylen… in blake2s_init_key() argument
191 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init_key()
195 P->digest_length = outlen; in blake2s_init_key()
311 int blake2s_final( blake2s_state *S, uint8_t *out, uint8_t outlen ) in blake2s_final() argument
316 if( out == NULL || outlen == 0 || outlen > BLAKE2S_OUTBYTES ) in blake2s_final()
339 memcpy( out, buffer, outlen ); in blake2s_final()
343 int blake2s( uint8_t *out, const void *in, const void *key, const uint8_t outlen, const uint64_t in… in blake2s() argument
354 if( !outlen || outlen > BLAKE2S_OUTBYTES ) return -1; in blake2s()
360 if( blake2s_init_key( S, outlen, key, keylen ) < 0 ) return -1; in blake2s()
364 if( blake2s_init( S, outlen ) < 0 ) return -1; in blake2s()
368 blake2s_final( S, out, outlen ); in blake2s()