]> git.ipfire.org Git - thirdparty/hostap.git/commit
crypto: Reduce the size of sha512_compress() stack frame
authorIlan Peer <ilan.peer@intel.com>
Wed, 22 Aug 2018 16:49:08 +0000 (19:49 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jan 2019 14:31:19 +0000 (16:31 +0200)
commit6ec02d77d640ec2a1a74ef239e14203e8c735b83
treed0799850ce5d5731185a47c89c2fbb98d002a6b3
parentd6e7d4dede2155652c8f621a484d048a6a736c4e
crypto: Reduce the size of sha512_compress() stack frame

The function sha512_compress() has a local variable that consumes 640
bytes. This is very heavy for embedded devices that have limited stack
resources. Handle this by replacing the static allocation with a dynamic
one.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
src/crypto/sha512-internal.c