[git] GCRYPT - branch, gniibe-T3358, updated. libgcrypt-1.8.0-17-gf6a34d8

by NIIBE Yutaka cvs at cvs.gnupg.org
Wed Aug 23 05:45:24 CEST 2017


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, gniibe-T3358 has been updated
       via  f6a34d84aeb2c93802de5ca9cc488014a6e8eb1e (commit)
      from  2b1ba75e108c90d69bbf7cf161def06763d22e48 (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 f6a34d84aeb2c93802de5ca9cc488014a6e8eb1e
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Wed Aug 23 12:43:38 2017 +0900

    ecc: Clean up curve specific method support.
    
    * src/ec-context.h (struct mpi_ec_ctx_s): Remove MOD method.
    * mpi/ec.c (ec_mod_25519): Remove.
    (ec_p_init): Follow the removal of the MOD method.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/mpi/ec.c b/mpi/ec.c
index c6419ba..fac369b 100644
--- a/mpi/ec.c
+++ b/mpi/ec.c
@@ -380,12 +380,6 @@ mpih_set_cond (mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned long set)
 
 /* Routines for 2^255 - 19.  */
 
-static void
-ec_mod_25519 (gcry_mpi_t w, mpi_ec_t ec)
-{
-  _gcry_mpi_mod (w, w, ec->p);
-}
-
 #define LIMB_SIZE_25519 ((256+BITS_PER_MPI_LIMB-1)/BITS_PER_MPI_LIMB)
 
 static void
@@ -502,7 +496,6 @@ struct field_table {
   const char *p;
 
   /* computation routines for the field.  */
-  void (* mod) (gcry_mpi_t w, mpi_ec_t ctx);
   void (* addm) (gcry_mpi_t w, gcry_mpi_t u, gcry_mpi_t v, mpi_ec_t ctx);
   void (* subm) (gcry_mpi_t w, gcry_mpi_t u, gcry_mpi_t v, mpi_ec_t ctx);
   void (* mulm) (gcry_mpi_t w, gcry_mpi_t u, gcry_mpi_t v, mpi_ec_t ctx);
@@ -513,14 +506,13 @@ struct field_table {
 static const struct field_table field_table[] = {
   {
     "0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFED",
-    ec_mod_25519,
     ec_addm_25519,
     ec_subm_25519,
     ec_mulm_25519,
     ec_mul2_25519,
     ec_pow2_25519
   },
-  { NULL, NULL, NULL, NULL, NULL, NULL, NULL },
+  { NULL, NULL, NULL, NULL, NULL, NULL },
 };
 

 /* Force recomputation of all helper variables.  */
@@ -608,7 +600,6 @@ ec_p_init (mpi_ec_t ctx, enum gcry_mpi_ec_models model,
   for (i=0; i< DIM(ctx->t.scratch); i++)
     ctx->t.scratch[i] = mpi_alloc_like (ctx->p);
 
-  ctx->mod = ec_mod;
   ctx->addm = ec_addm;
   ctx->subm = ec_subm;
   ctx->mulm = ec_mulm;
@@ -626,7 +617,6 @@ ec_p_init (mpi_ec_t ctx, enum gcry_mpi_ec_models model,
 
       if (!mpi_cmp (p, f_p))
         {
-          ctx->mod = field_table[i].mod;
           ctx->addm = field_table[i].addm;
           ctx->subm = field_table[i].subm;
           ctx->mulm = field_table[i].mulm;
diff --git a/src/ec-context.h b/src/ec-context.h
index 18b26a5..e48ef6f 100644
--- a/src/ec-context.h
+++ b/src/ec-context.h
@@ -68,7 +68,6 @@ struct mpi_ec_ctx_s
   } t;
 
   /* Curve specific computation routines for the field.  */
-  void (* mod) (gcry_mpi_t w, mpi_ec_t ec);
   void (* addm) (gcry_mpi_t w, gcry_mpi_t u, gcry_mpi_t v, mpi_ec_t ctx);
   void (* subm) (gcry_mpi_t w, gcry_mpi_t u, gcry_mpi_t v, mpi_ec_t ec);
   void (* mulm) (gcry_mpi_t w, gcry_mpi_t u, gcry_mpi_t v, mpi_ec_t ctx);

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

Summary of changes:
 mpi/ec.c         | 12 +-----------
 src/ec-context.h |  1 -
 2 files changed, 1 insertion(+), 12 deletions(-)


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




More information about the Gnupg-commits mailing list