Mailing List Archive

[PATCH] ecc: fix typo error in ecc-gost
* cipher/ecc-gost.c (_gcry_ecc_gost_verify): fix typo in comment

Signed-off-by: Tianjia Zhang <tianjia.zhang@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


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: [PATCH] ecc: fix typo error in ecc-gost [ In reply to ]
Tianjia Zhang <tianjia.zhang@linux.alibaba.com> wrote:
> * cipher/ecc-gost.c (_gcry_ecc_gost_verify): fix typo in comment
>
> Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>

Thank you. Applied and pushed to master.
--

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel