summaryrefslogtreecommitdiffstats
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
commitae748b9cf852833d121cf0c1d35bff52d566102b (patch)
tree66e989a617587863f598245366dacc6bea053ccd /crypto/ccm.c
parentb6409906c7c03b7ca090678614ef027bb8537196 (diff)
downloadlinux-stable-ae748b9cf852833d121cf0c1d35bff52d566102b.tar.gz
linux-stable-ae748b9cf852833d121cf0c1d35bff52d566102b.tar.bz2
linux-stable-ae748b9cf852833d121cf0c1d35bff52d566102b.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 8c24605c791e..380eb619f657 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");