]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mac80211: aes-cmac: switch to shash CMAC driver
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 6 Feb 2017 10:49:28 +0000 (10:49 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 8 Feb 2017 08:19:33 +0000 (09:19 +0100)
commit26717828b75dd5c46e97f7f4a9b937d038bb2852
treecb192493dd8bb60c52260932877cd7e23de96a81
parentfe8de3da13bdbcbe8b583a3bbadf677da0f04f83
mac80211: aes-cmac: switch to shash CMAC driver

Instead of open coding the CMAC algorithm in the mac80211 driver using
byte wide xors and calls into the crypto layer for each block of data,
instantiate a cmac(aes) synchronous hash and pass all the data into it
directly. This does not only simplify the code, it also allows the use
of more efficient and more secure implementations, especially on
platforms where SIMD ciphers have a considerable setup cost.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/aes_cmac.c
net/mac80211/aes_cmac.h
net/mac80211/key.h