crypto: essiv - create wrapper template for ESSIV generation
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 19 Aug 2019 14:17:33 +0000 (17:17 +0300)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Sep 2019 20:44:57 +0000 (16:44 -0400)
commitbe1eb7f78aa8fbe34779c56c266ccd0364604e71
tree7930cd51bfb57e9c6b0547677a7eb7e3dc7a82e3
parentc1499a044d7c2bbd9ea3d9c17e17f16595ae6d69
crypto: essiv - create wrapper template for ESSIV generation

Implement a template that wraps a (skcipher,shash) or (aead,shash) tuple
so that we can consolidate the ESSIV handling in fscrypt and dm-crypt and
move it into the crypto API. This will result in better test coverage, and
will allow future changes to make the bare cipher interface internal to the
crypto subsystem, in order to increase robustness of the API against misuse.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
crypto/Kconfig
crypto/Makefile
crypto/essiv.c [new file with mode: 0644]