You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@milagro.apache.org by km...@apache.org on 2019/06/14 15:23:41 UTC

[incubator-milagro-crypto] branch fix-amcl-typo created (now f9040a1)

This is an automated email from the ASF dual-hosted git repository.

kmccusker pushed a change to branch fix-amcl-typo
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-crypto.git.


      at f9040a1  fix AMCL_AMCL typo

This branch includes the following new commits:

     new f9040a1  fix AMCL_AMCL typo

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-milagro-crypto] 01/01: fix AMCL_AMCL typo

Posted by km...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kmccusker pushed a commit to branch fix-amcl-typo
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-crypto.git

commit f9040a19f81c0012f839a3d08ec9359f5b19351d
Author: Kealan McCusker <ke...@gmail.com>
AuthorDate: Fri Jun 14 16:23:23 2019 +0100

    fix AMCL_AMCL typo
---
 version3/c/amcl.h    | 2 +-
 version3/c/fp12.c    | 4 ++--
 version3/c/fp24.c    | 6 +++---
 version3/c/fp48.c    | 6 +++---
 version3/c/pair.c    | 2 +-
 version3/c/pair192.c | 2 +-
 version3/c/pair256.c | 2 +-
 7 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/version3/c/amcl.h b/version3/c/amcl.h
index a976e9f..f588c0a 100644
--- a/version3/c/amcl.h
+++ b/version3/c/amcl.h
@@ -59,7 +59,7 @@
 
 #define AMCL_FP_ZERO 0
 #define AMCL_FP_UNITY 1
-#define AMCL_AMCL_FP_SPARSER 2
+#define AMCL_FP_SPARSER 2
 #define AMCL_FP_SPARSE 3
 #define AMCL_FP_DENSE 4
 
diff --git a/version3/c/fp12.c b/version3/c/fp12.c
index 0ee7664..c8b4765 100644
--- a/version3/c/fp12.c
+++ b/version3/c/fp12.c
@@ -129,7 +129,7 @@ void FP12_YYY_from_FP4(FP12_YYY *w,FP4_YYY *a)
     FP4_YYY_copy(&(w->a),a);
     FP4_YYY_zero(&(w->b));
     FP4_YYY_zero(&(w->c));
-    w->type=AMCL_AMCL_FP_SPARSER;
+    w->type=AMCL_FP_SPARSER;
 }
 
 /* Create FP12 from 3 FP4's */
@@ -387,7 +387,7 @@ void FP12_YYY_ssmul(FP12_YYY *w,FP12_YYY *y)
     }
     else
     {
-        if (w->type==AMCL_AMCL_FP_SPARSER)
+        if (w->type==AMCL_FP_SPARSER)
         {
             FP12_YYY_smul(w,y);
             return;
diff --git a/version3/c/fp24.c b/version3/c/fp24.c
index 815ce89..5470a70 100644
--- a/version3/c/fp24.c
+++ b/version3/c/fp24.c
@@ -126,7 +126,7 @@ void FP24_YYY_from_FP8(FP24_YYY *w,FP8_YYY *a)
     FP8_YYY_copy(&(w->a),a);
     FP8_YYY_zero(&(w->b));
     FP8_YYY_zero(&(w->c));
-    w->type=AMCL_AMCL_FP_SPARSER;
+    w->type=AMCL_FP_SPARSER;
 }
 
 /* Create FP24 from 3 FP8's */
@@ -227,7 +227,7 @@ void FP24_YYY_sqr(FP24_YYY *w,FP24_YYY *x)
     FP8_YYY_add(&(w->b),&C,&D);
     FP8_YYY_add(&(w->c),&(w->c),&A);
 
-    if (x->type==AMCL_AMCL_FP_SPARSER)
+    if (x->type==AMCL_FP_SPARSER)
         w->type=AMCL_FP_SPARSE;
     else
         w->type=AMCL_FP_DENSE;
@@ -384,7 +384,7 @@ void FP24_YYY_ssmul(FP24_YYY *w,FP24_YYY *y)
     }
     else
     {
-        if (w->type==AMCL_AMCL_FP_SPARSER)
+        if (w->type==AMCL_FP_SPARSER)
         {
             FP24_YYY_smul(w,y);
             return;
diff --git a/version3/c/fp48.c b/version3/c/fp48.c
index 8083bf5..cc5394e 100644
--- a/version3/c/fp48.c
+++ b/version3/c/fp48.c
@@ -127,7 +127,7 @@ void FP48_YYY_from_FP16(FP48_YYY *w,FP16_YYY *a)
     FP16_YYY_copy(&(w->a),a);
     FP16_YYY_zero(&(w->b));
     FP16_YYY_zero(&(w->c));
-    w->type=AMCL_AMCL_FP_SPARSER;
+    w->type=AMCL_FP_SPARSER;
 }
 
 /* Create FP48 from 3 FP16's */
@@ -228,7 +228,7 @@ void FP48_YYY_sqr(FP48_YYY *w,FP48_YYY *x)
     FP16_YYY_add(&(w->b),&C,&D);
     FP16_YYY_add(&(w->c),&(w->c),&A);
 
-    if (x->type==AMCL_AMCL_FP_SPARSER)
+    if (x->type==AMCL_FP_SPARSER)
         w->type=AMCL_FP_SPARSE;
     else
         w->type=AMCL_FP_DENSE;
@@ -385,7 +385,7 @@ void FP48_YYY_ssmul(FP48_YYY *w,FP48_YYY *y)
     }
     else
     {
-        if (w->type==AMCL_AMCL_FP_SPARSER)
+        if (w->type==AMCL_FP_SPARSER)
         {
             FP48_YYY_smul(w,y);
             return;
diff --git a/version3/c/pair.c b/version3/c/pair.c
index 8faf54a..5e8fdc2 100644
--- a/version3/c/pair.c
+++ b/version3/c/pair.c
@@ -131,7 +131,7 @@ static void PAIR_ZZZ_line(FP12_YYY *v,ECP2_ZZZ *A,ECP2_ZZZ *B,FP_YYY *Qx,FP_YYY
     }
 
     FP12_YYY_from_FP4s(v,&a,&b,&c);
-    v->type=AMCL_AMCL_FP_SPARSER;
+    v->type=AMCL_FP_SPARSER;
 }
 
 
diff --git a/version3/c/pair192.c b/version3/c/pair192.c
index 3e6f966..94f2d84 100644
--- a/version3/c/pair192.c
+++ b/version3/c/pair192.c
@@ -132,7 +132,7 @@ static void PAIR_ZZZ_line(FP24_YYY *v,ECP4_ZZZ *A,ECP4_ZZZ *B,FP_YYY *Qx,FP_YYY
     }
 
     FP24_YYY_from_FP8s(v,&a,&b,&c);
-    v->type=AMCL_AMCL_FP_SPARSER;
+    v->type=AMCL_FP_SPARSER;
 }
 
 /* prepare ate parameter, n=6u+2 (BN) or n=u (BLS), n3=3*n */
diff --git a/version3/c/pair256.c b/version3/c/pair256.c
index 2b53ba4..00a4603 100644
--- a/version3/c/pair256.c
+++ b/version3/c/pair256.c
@@ -129,7 +129,7 @@ static void PAIR_ZZZ_line(FP48_YYY *v,ECP8_ZZZ *A,ECP8_ZZZ *B,FP_YYY *Qx,FP_YYY
     }
 
     FP48_YYY_from_FP16s(v,&a,&b,&c);
-    v->type=AMCL_AMCL_FP_SPARSER;
+    v->type=AMCL_FP_SPARSER;
 }
 
 /* prepare ate parameter, n=6u+2 (BN) or n=u (BLS), n3=3*n */