Re: [PATCH] crypto: x86/aes-ni - use AES library instead of single-use AES cipher

2019-09-09 Thread Herbert Xu
On Wed, Sep 04, 2019 at 10:56:32AM -0700, Ard Biesheuvel wrote: > The RFC4106 key derivation code instantiates an AES cipher transform > to encrypt only a single block before it is freed again. Switch to > the new AES library which is more suitable for such use cases. > > Signed-off-by: Ard Bieshe

[PATCH] crypto: x86/aes-ni - use AES library instead of single-use AES cipher

2019-09-04 Thread Ard Biesheuvel
The RFC4106 key derivation code instantiates an AES cipher transform to encrypt only a single block before it is freed again. Switch to the new AES library which is more suitable for such use cases. Signed-off-by: Ard Biesheuvel --- arch/x86/crypto/aesni-intel_glue.c | 17 ++--- 1 fi