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

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


The following commit(s) were added to refs/heads/develop by this push:
     new 7095779  fix FP _equals macros
     new 09f4a37  Merge pull request #45 from jaromil/develop
7095779 is described below

commit 70957796559a9ee62371141489c20d1ba1cc5404
Author: Jaromil <[email protected]>
AuthorDate: Fri Aug 23 14:47:40 2019 +0200

    fix FP _equals macros
    
    related to #42
---
 src/fp12.c.in | 2 +-
 src/fp24.c.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/fp12.c.in b/src/fp12.c.in
index c8b4765..4371cb8 100644
--- a/src/fp12.c.in
+++ b/src/fp12.c.in
@@ -107,7 +107,7 @@ void FP12_YYY_zero(FP12_YYY *w)
 /* SU= 16 */
 int FP12_YYY_equals(FP12_YYY *x,FP12_YYY *y)
 {
-    if (FP4_YYY_equals(&(x->a),&(y->a)) && FP4_YYY_equals(&(x->b),&(y->b)) && 
FP4_YYY_equals(&(x->b),&(y->b)))
+    if (FP4_YYY_equals(&(x->a),&(y->a)) && FP4_YYY_equals(&(x->b),&(y->b)) && 
FP4_YYY_equals(&(x->c),&(y->c)))
         return 1;
     return 0;
 }
diff --git a/src/fp24.c.in b/src/fp24.c.in
index 5470a70..d1cf0fe 100644
--- a/src/fp24.c.in
+++ b/src/fp24.c.in
@@ -104,7 +104,7 @@ void FP24_YYY_zero(FP24_YYY *w)
 /* SU= 16 */
 int FP24_YYY_equals(FP24_YYY *x,FP24_YYY *y)
 {
-    if (FP8_YYY_equals(&(x->a),&(y->a)) && FP8_YYY_equals(&(x->b),&(y->b)) && 
FP8_YYY_equals(&(x->b),&(y->b)))
+    if (FP8_YYY_equals(&(x->a),&(y->a)) && FP8_YYY_equals(&(x->b),&(y->b)) && 
FP8_YYY_equals(&(x->c),&(y->c)))
         return 1;
     return 0;
 }

Reply via email to