On Fri, Dec 11, 2020 at 01:27:14PM +0100, Ard Biesheuvel wrote: > Allocating a cipher via the crypto API only to free it again after using > it to encrypt a single block is unnecessary in cases where the algorithm > is known at compile time. So replace this pattern with a call to the AES > library. > > Cc: Ayush Sawal <ayush.sawal@xxxxxxxxxxx> > Cc: Vinay Kumar Yadav <vinay.yadav@xxxxxxxxxxx> > Cc: Rohit Maheshwari <rohitm@xxxxxxxxxxx> > Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx> Reviewed-by: Eric Biggers <ebiggers@xxxxxxxxxx>