tn3399_openwrt/package
Daniel Kestrel 85383b3112 ltq-deu: fix setkey errors and static shared temp for hmac algos
The hmac algorithms state, that keys larger than the key size should be
hashed with the underlying hash algorithms and then those hashes are to
be used as keys. This patch implements this. In order to avoid allocating
a descriptor during setkey, a shash_desc pointer is added to the context.
Another issue for multithreaded callers is the shared temp array.
The temp array is static and as such would be shared among multithreaded
callers, which obviously would neither work nor produce correct results.
The temp array (4k size) is moved to the context and since the size of
the context is limited, it can only be defined as pointer otherwise the
initialisation of the hash algorithm fails.
The allocations and freeing of both the temp and the desc pointer in the
context are done by implementing cra_init and cra_exit functions for
the hmac algorithms.
Also improved indentation in some areas.

Signed-off-by: Daniel Kestrel <kestrel1974@t-online.de>
2022-01-06 00:22:57 +01:00
..
base-files base-files: upgrade: fix efi partitions size calculation 2021-12-27 13:51:41 +01:00
boot kirkwood: add support for NETGEAR ReadyNAS Duo v2 2021-12-29 20:35:57 +01:00
devel binutils: fix compiling with arch-based distros 2022-01-02 20:33:28 +01:00
firmware linux-firmware: amd: consolidate amd's linux-firmware entries 2021-12-27 13:51:41 +01:00
kernel ltq-deu: fix setkey errors and static shared temp for hmac algos 2022-01-06 00:22:57 +01:00
libs openssl: bump to 1.1.1m 2022-01-01 18:02:49 +01:00
network hostapd: refresh patchset 2021-12-31 12:11:59 +01:00
system procd: update to git HEAD 2021-12-20 02:23:47 +00:00
utils lua: add HOST_FPIC for host builds 2022-01-03 10:34:31 +01:00
Makefile build: fix opkg install step for large package selection 2021-05-12 11:13:53 +02:00