]> git.baikalelectronics.ru Git - kernel.git/commit
dm crypt: switch to ESSIV crypto API template
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 19 Aug 2019 14:17:37 +0000 (17:17 +0300)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Sep 2019 20:45:54 +0000 (16:45 -0400)
commit71166e0718c81357e68b525a031e65e538b2f0f8
tree5d6b20e5d0959d4aee220068c08940347bd5ec17
parent43415f4910e4b7041471e3f6f0d8522b37e6422d
dm crypt: switch to ESSIV crypto API template

Replace the explicit ESSIV handling in the dm-crypt driver with calls
into the crypto API, which now possesses the capability to perform
this processing within the crypto subsystem.

Note that we reorder the AEAD cipher_api string parsing with the TFM
instantiation: this is needed because cipher_api is mangled by the
ESSIV handling, and throws off the parsing of "authenc(" otherwise.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/Kconfig
drivers/md/dm-crypt.c