summaryrefslogtreecommitdiff
path: root/crypto/ccm.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-06-17 10:18:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-18 08:52:34 +0200
commit4c3c8f1016e9854690d93cbc4a825af6594d40e4 (patch)
treeb185486062f5a302a0e08af7679c5750886ba25a /crypto/ccm.c
parenta84aadf66a5970b4ada37b58f16c50dd797f2935 (diff)
downloadlinux-crypto-4c3c8f1016e9854690d93cbc4a825af6594d40e4.tar.gz
linux-crypto-4c3c8f1016e9854690d93cbc4a825af6594d40e4.zip
wusb: switch to cbcmac transform
The wusb code takes a very peculiar approach at implementing CBC-MAC, by using plain CBC into a scratch buffer, and taking the output IV as the MAC. We can clean up this code substantially by switching to the cbcmac shash, as exposed by the CCM template. To ensure that the module is loaded on demand, add the cbcmac template name as a module alias. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/ccm.c')
-rw-r--r--crypto/ccm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ccm.c b/crypto/ccm.c
index 8c24605c..380eb619 100644
--- a/crypto/ccm.c
+++ b/crypto/ccm.c
@@ -1009,3 +1009,4 @@ MODULE_DESCRIPTION("Counter with CBC MAC");
MODULE_ALIAS_CRYPTO("ccm_base");
MODULE_ALIAS_CRYPTO("rfc4309");
MODULE_ALIAS_CRYPTO("ccm");
+MODULE_ALIAS_CRYPTO("cbcmac");