]> git.codecow.com Git - Monocypher.git/commit
Moved SHA 512 work area to local stack
authorLoup Vaillant <loup@loup-vaillant.fr>
Tue, 3 Dec 2019 07:52:01 +0000 (08:52 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Tue, 3 Dec 2019 07:52:01 +0000 (08:52 +0100)
commit9e5f98e946336363bf39107de958664b7ecc8317
treeb65704efdd94b3bce8077c70a9d0127337ad63c5
parente43c8af9e8ae30fed012dcf2bb40a38bf728289f
Moved SHA 512 work area to local stack

While some users could perhaps benefit from saving 640 bytes of stack
space by allocating the context statically, or in the heap, in practice
it's not he bottleneck.  Besides, putting the work area there actually
*increases* stack usage on signatures and signature verification, which
are the most stack hungry parts of Monocypher to begin with.

Better not try to be clever.
src/optional/ed25519.c
src/optional/ed25519.h