wusb: switch to cbcmac transform
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 17 Jun 2019 08:18:48 +0000 (10:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2019 06:52:34 +0000 (08:52 +0200)
commitae748b9cf852833d121cf0c1d35bff52d566102b
tree66e989a617587863f598245366dacc6bea053ccd
parentb6409906c7c03b7ca090678614ef027bb8537196
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>
crypto/ccm.c
drivers/usb/wusbcore/Kconfig
drivers/usb/wusbcore/crypto.c