tn3399_openwrt/package/kernel/lantiq
Daniel Kestrel 79efaa7f8f ltq-deu: add shash cbcmac-aes algorithm to the driver
Since commit 53b6783 hostapd is using the kernel api which includes the
cbcmac-aes shash algorithm. The kernels implementation is a wrapper around
the aes encryption algorithm, which encrypts block (16 bytes) by block.
When the ltq-deu driver is present, it uses hardware aes, but every 16 byte
encrypt requires setting the key. This is very inefficient and is a huge
overhead. Since the cbcmac-aes is simply a hash that uses the cbc aes
algorithm starting with an iv set to x'00' with an optional ecb aes
encryption of a possible last incomplete block that is padded with the
positional bytes of the last cbc encrypted block, this algorithm is now
added to the driver. Most of the code is derived from md5-hmac and
tailored for aes. Tested with the kernels crypto testmgr including extra
tests against the kernels generic ccm module implementation.
This patch also fixes the overallocation in the aes_ctx that is caused
by using u32 instead of u8 for the aes keys.

Signed-off-by: Daniel Kestrel <kestrel1974@t-online.de>
2022-01-06 00:23:15 +01:00
..
ltq-adsl lantiq: ltq-adsl: add kernel 5.10 compatiblity 2021-04-12 23:23:09 +02:00
ltq-adsl-fw ltq-adsl(-fw): Makefile clean-up and fixes 2020-04-24 17:59:22 +02:00
ltq-adsl-mei kernel: drop outdated kernel version switches for local code 2020-05-17 18:35:51 +02:00
ltq-atm ltq-atm/ltq-ptm: add kernel 5.10 compatiblity 2021-04-12 23:23:09 +02:00
ltq-deu ltq-deu: add shash cbcmac-aes algorithm to the driver 2022-01-06 00:23:15 +01:00
ltq-ifxos lantiq: ltq-ifxos: add kernel 5.10 compatiblity 2021-04-12 23:23:09 +02:00
ltq-ptm ltq-atm/ltq-ptm: add kernel 5.10 compatiblity 2021-04-12 23:23:09 +02:00
ltq-tapi lantiq: ltq-tapi: add kernel 5.10 compatiblity 2021-04-12 23:23:09 +02:00
ltq-vdsl ltq-vdsl: add missing backslash 2021-08-21 19:16:26 +01:00
ltq-vdsl-fw ltq-vdsl-fw: update w921v firmware download URL 2021-11-15 15:18:03 +00:00
ltq-vdsl-mei lantiq: ltq-vdsl-mei: add kernel 5.10 compatiblity 2021-04-12 23:23:09 +02:00
ltq-vmmc kernel: lantiq: fix Module.symvers handling 2021-02-18 08:43:08 +01:00