ltq-deu: remove redundant code for setting the key in aes
authorDaniel Kestrel <kestrel1974@t-online.de>
Thu, 8 Jul 2021 06:06:57 +0000 (08:06 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 5 Jan 2022 23:23:15 +0000 (00:23 +0100)
commita0d6b09c3646b219a56a68adf253bae0f3f29443
tree41b5d33d693f5bb5e1c952f9e836285d086ea865
parent79efaa7f8fa5c4e2010c9948155838cfb5e72663
ltq-deu: remove redundant code for setting the key in aes

After adding xts and cbcmac the aes algorithm source had three sections
for setting the aes key to the hardware which are identical.
Method aes_set_key_hw was created which is now called from within the
spinlock secured control sections in methods ifx_deu_aes, ifx_deu_aes_xts
and aes_cbcmac_final_impl and reduces the size of ifxmips_aes.c.

Signed-off-by: Daniel Kestrel <kestrel1974@t-online.de>
package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c