]> git.ipfire.org Git - thirdparty/nettle.git/commit
Improve scratch usage in ecc_mod_inv.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 14 Nov 2020 15:54:45 +0000 (16:54 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 14 Nov 2020 15:54:45 +0000 (16:54 +0100)
commit8ab71212a2b7e810a68d5916afdca75c6291a2eb
tree8b0e94267581a94b562fafadd523875692daa26b
parentd7a433dc591a8435defebbcdf85a98d4198f9dce
Improve scratch usage in ecc_mod_inv.

* ecc-mod-inv.c (ecc_mod_inv): Use passed in scratch for all
scratch needs, don't use memory after the result area.
* ecc-ecdsa-sign.c (ecc_ecdsa_sign): Update invert call.
* ecc-ecdsa-verify.c (ecc_ecdsa_verify): Likewise.
* ecc-eh-to-a.c (ecc_eh_to_a): Likewise.
* ecc-j-to-a.c (ecc_j_to_a): Likewise.
* ecc-gostdsa-verify.c (ecc_gostdsa_verify): Likewise.
* ecc-internal.h (ECC_MOD_INV_ITCH, ECC_J_TO_A_ITCH)
(ECC_EH_TO_A_ITCH): Update accordingly, but no change in total
scratch need.
ChangeLog
ecc-ecdsa-sign.c
ecc-ecdsa-verify.c
ecc-eh-to-a.c
ecc-gostdsa-verify.c
ecc-internal.h
ecc-j-to-a.c
ecc-mod-inv.c