Re: [PATCH v3 06/14] crypto: blake2s - optimize blake2s initialization

2020-12-23 Thread Ard Biesheuvel
On Wed, 23 Dec 2020 at 09:12, Eric Biggers wrote: > > From: Eric Biggers > > If no key was provided, then don't waste time initializing the block > buffer, as its initial contents won't be used. > > Also, make crypto_blake2s_init() and blake2s() call a single internal > function __blake2s_init()

[PATCH v3 06/14] crypto: blake2s - optimize blake2s initialization

2020-12-23 Thread Eric Biggers
From: Eric Biggers If no key was provided, then don't waste time initializing the block buffer, as its initial contents won't be used. Also, make crypto_blake2s_init() and blake2s() call a single internal function __blake2s_init() which treats the key as optional, rather than conditionally calli