]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
dm crypt: use crypto_shash_digest() in crypt_iv_tcw_whitening()
authorEric Biggers <ebiggers@google.com>
Sun, 29 Oct 2023 04:59:23 +0000 (21:59 -0700)
committerMike Snitzer <snitzer@kernel.org>
Tue, 31 Oct 2023 15:06:21 +0000 (11:06 -0400)
commit6d0ee3b68092ef556703d7827ead3d1b7d275399
treefee1f4e5ac9acf6e323912d9284bccd314f9c55b
parenta951104333bd25bb6e5d0f5bee9cbf155b66fac1
dm crypt: use crypto_shash_digest() in crypt_iv_tcw_whitening()

Simplify crypt_iv_tcw_whitening() by using crypto_shash_digest() instead
of an init+update+final sequence.  This should also improve performance.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-crypt.c