diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-06-17 10:18:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-18 08:52:34 +0200 |
commit | ae748b9cf852833d121cf0c1d35bff52d566102b (patch) | |
tree | 66e989a617587863f598245366dacc6bea053ccd /crypto/ccm.c | |
parent | usb: isp1362: Spelling s/eclusive/exclusive/ (diff) | |
download | linux-ae748b9cf852833d121cf0c1d35bff52d566102b.tar.xz linux-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.c | 1 |
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"); |