summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2022-09-28 17:46:27 +0200
committerNiels Möller <nisse@lysator.liu.se>2022-09-28 17:46:27 +0200
commited27e2c47528c455c0541d4d377e687f097c0f8f (patch)
treefd4a9f9a6697132bba68479fbf9dcb52e7e36a59
parent4eb5868ce8963827aa6e00a01ed90df488b288fe (diff)
downloadnettle-ed27e2c47528c455c0541d4d377e687f097c0f8f.tar.gz
Comment updateecdsa-duplication-fix
-rw-r--r--ecc-ecdsa-verify.c2
-rw-r--r--ecc-gostdsa-verify.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ecc-ecdsa-verify.c b/ecc-ecdsa-verify.c
index bd6491a1..4c6284af 100644
--- a/ecc-ecdsa-verify.c
+++ b/ecc-ecdsa-verify.c
@@ -117,7 +117,7 @@ ecc_ecdsa_verify (const struct ecc_curve *ecc,
/* Total storage: 7*ecc->p.size + ecc->mul_g_itch (ecc->p.size) */
ecc->mul_g (ecc, P1, u1, P1 + 3*ecc->p.size);
- /* Total storage: 6*ecc->p.size + ECC_ADD_JJA_ITCH(size) */
+ /* Total storage: 6*ecc->p.size + ECC_ADD_JJJ_ITCH(size) */
if (!ecc_nonsec_add_jjj (ecc, P2, P2, P1, P1 + 3*ecc->p.size))
/* Infinity point, not a valid signature. */
return 0;
diff --git a/ecc-gostdsa-verify.c b/ecc-gostdsa-verify.c
index d1b0454f..a835ba71 100644
--- a/ecc-gostdsa-verify.c
+++ b/ecc-gostdsa-verify.c
@@ -114,7 +114,7 @@ ecc_gostdsa_verify (const struct ecc_curve *ecc,
/* Total storage: 7*ecc->p.size + ecc->mul_g_itch (ecc->p.size) */
ecc->mul_g (ecc, P1, z1, P1 + 3*ecc->p.size);
- /* Total storage: 6*ecc->p.size + ecc->add_hhh_itch */
+ /* Total storage: 6*ecc->p.size + ECC_ADD_JJJ_ITCH(size) */
if (!ecc_nonsec_add_jjj (ecc, P1, P1, P2, P1 + 3*ecc->p.size))
return 0;