[PATCH] ecc: fix typo error in ecc-gost
Tianjia Zhang
tianjia.zhang at linux.alibaba.com
Tue Apr 21 06:04:14 CEST 2020
* cipher/ecc-gost.c (_gcry_ecc_gost_verify): fix typo in comment
Signed-off-by: Tianjia Zhang <tianjia.zhang at linux.alibaba.com>
---
cipher/ecc-gost.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cipher/ecc-gost.c b/cipher/ecc-gost.c
index 44654a47..c5ab774d 100644
--- a/cipher/ecc-gost.c
+++ b/cipher/ecc-gost.c
@@ -154,7 +154,7 @@ _gcry_ecc_gost_verify (gcry_mpi_t input, mpi_ec_t ec,
mpi_set_ui (e, 1);
mpi_invm (v, e, ec->n); /* v = e^(-1) (mod n) */
mpi_mulm (z1, s, v, ec->n); /* z1 = s*v (mod n) */
- mpi_mulm (rv, r, v, ec->n); /* rv = s*v (mod n) */
+ mpi_mulm (rv, r, v, ec->n); /* rv = r*v (mod n) */
mpi_subm (z2, zero, rv, ec->n); /* z2 = -r*v (mod n) */
_gcry_mpi_ec_mul_point (&Q1, z1, ec->G, ec);
--
2.17.1
More information about the Gcrypt-devel
mailing list