OSDN Git Service

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)
commita1a262b66e5554974b56b1dcacb3f0aec9b273a1
tree5d6b20e5d0959d4aee220068c08940347bd5ec17
parentbe1eb7f78aa8fbe34779c56c266ccd0364604e71
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