]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: mediatek - use AES library for GCM key derivation
authorArd Biesheuvel <ardb@kernel.org>
Tue, 7 Jul 2020 06:32:03 +0000 (09:32 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Jul 2020 11:49:04 +0000 (21:49 +1000)
commit76ae414213f1eff15d530c515873568ddbe7e781
tree9be4d134c7bea8e8696048aaf623037c40a6628d
parentf60eb75e6e7ac3c53e4666aa8c44e41a277f1065
crypto: mediatek - use AES library for GCM key derivation

The Mediatek accelerator driver calls into a dynamically allocated
skcipher of the ctr(aes) variety to perform GCM key derivation, which
involves AES encryption of a single block consisting of NUL bytes.

There is no point in using the skcipher API for this, so use the AES
library interface instead.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig
drivers/crypto/mediatek/mtk-aes.c