openwrt/package
Daniel Kestrel 0470b05b56 ltq-deu: fix temp size exceed in hmac algorithms
Exceeding the temp array size was not checked and instead storage not
allocated by the driver was used/overwritten which in most cases
resulted in reboots. This patch implements processing the input to the
hash algorithm in tempsize chunks.
The _hmac_final methods were changed to _hmac_final_impl adding a
parameter that indicates intermediate or final processing. The started
variable was added to the context to indicate, if there is an
intermediate result in the context. For sha1_hmac the variable to store
the intermediate hash was added to the context too.
In order to avoid md5_hmac_final_impl being recursively called if the
padding of the input and the resulting last transform during the hmac
algorighms final processing causes the temp array to overflow and to
make sure that there is at least one block in the temp array when the
_hmac_final for final processing is called, the check for exceeding
the temp array in _hmac_transform was moved before copying the block
and incrementing dbn. dbn needs to be at least 1 at final processing
time to let the hash engine apply the opad operation.
To make the hash engine not apply the hmac algorithms final opad
operation, for intermediate processing the dbn in the control register
is set to a higher value than number of dbns are actually processed.

Signed-off-by: Daniel Kestrel <kestrel1974@t-online.de>
2022-01-06 00:22:59 +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 temp size exceed in hmac algorithms 2022-01-06 00:22:59 +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