[git] GCRYPT - branch, master, updated. libgcrypt-1.5.0-282-g1d85452

by Werner Koch cvs at cvs.gnupg.org
Mon Sep 30 21:46:34 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  1d85452412b65e7976bc94969fc513ff6b880ed8 (commit)
      from  a2618c822e666d4121cba29bee3fd50bf70c9743 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1d85452412b65e7976bc94969fc513ff6b880ed8
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Sep 30 21:14:11 2013 +0200

    ecc: Use faster b parameter for Ed25519.
    
    * cipher/ecc-curves.c (domain_parms): Replace b.
    * tests/t-mpi-point.c (test_curve): Ditto.
    --
    
    This change has been suggested by NIIBE Yutaka:
    
      Here,
    
        0x98412DFC9311D490018C7338BF8688861767FF8FF5B2BEBE27548A14B235EC8FEDA4
    
      is: (121666^-1 mod q)*121665.
    
      (121666^-1) * 121665 mod q is:
    
        0x2DFC9311D490018C7338BF8688861767FF8FF5B2BEBE27548A14B235ECA6874A
    
      While it works for both, I think that shorter is better.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/cipher/ecc-curves.c b/cipher/ecc-curves.c
index 7447340..15888a8 100644
--- a/cipher/ecc-curves.c
+++ b/cipher/ecc-curves.c
@@ -103,7 +103,7 @@ static const ecc_domain_parms_t domain_parms[] =
       MPI_EC_TWISTEDEDWARDS, ECC_DIALECT_ED25519,
       "0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFED",
       "-0x01",
-      "-0x98412DFC9311D490018C7338BF8688861767FF8FF5B2BEBE27548A14B235EC8FEDA4",
+      "-0x2DFC9311D490018C7338BF8688861767FF8FF5B2BEBE27548A14B235ECA6874A",
       "0x1000000000000000000000000000000014DEF9DEA2F79CD65812631A5CF5D3ED",
       "0x216936D3CD6E53FEC0A4E231FDD6DC5C692CC7609525A7B2C9562D608F25D51A",
       "0x6666666666666666666666666666666666666666666666666666666666666658"
diff --git a/tests/t-mpi-point.c b/tests/t-mpi-point.c
index 5a0b311..a345cbc 100644
--- a/tests/t-mpi-point.c
+++ b/tests/t-mpi-point.c
@@ -125,7 +125,7 @@ static struct
       "Ed25519",
       "0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFED",
       "-0x01",
-      "-0x98412DFC9311D490018C7338BF8688861767FF8FF5B2BEBE27548A14B235EC8FEDA4",
+      "-0x2DFC9311D490018C7338BF8688861767FF8FF5B2BEBE27548A14B235ECA6874A",
       "0x1000000000000000000000000000000014DEF9DEA2F79CD65812631A5CF5D3ED",
       "0x216936D3CD6E53FEC0A4E231FDD6DC5C692CC7609525A7B2C9562D608F25D51A",
       "0x6666666666666666666666666666666666666666666666666666666666666658"

-----------------------------------------------------------------------

Summary of changes:
 cipher/ecc-curves.c |    2 +-
 tests/t-mpi-point.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org


_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits




More information about the Gcrypt-devel mailing list