From 68f332d0aeefa70692e6eb45e278c2b9fe1da6bb Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Fri, 30 Aug 2019 11:13:28 +0900 Subject: [PATCH] change members of mclBn{Fp,G1,G2} --- include/mcl/bn.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/mcl/bn.h b/include/mcl/bn.h index 20212da..4221989 100644 --- a/include/mcl/bn.h +++ b/include/mcl/bn.h @@ -75,30 +75,30 @@ typedef struct mclBnFp2 mclBnFp2; #else +typedef struct { + uint64_t d[MCLBN_FP_UNIT_SIZE]; +} mclBnFp; + +typedef struct { + mclBnFp d[2]; +} mclBnFp2; + typedef struct { uint64_t d[MCLBN_FR_UNIT_SIZE]; } mclBnFr; typedef struct { - uint64_t d[MCLBN_FP_UNIT_SIZE * 3]; + mclBnFp x, y, z; } mclBnG1; typedef struct { - uint64_t d[MCLBN_FP_UNIT_SIZE * 2 * 3]; + mclBnFp2 x, y, z; } mclBnG2; typedef struct { - uint64_t d[MCLBN_FP_UNIT_SIZE * 12]; + mclBnFp d[12]; } mclBnGT; -typedef struct { - uint64_t d[MCLBN_FP_UNIT_SIZE]; -} mclBnFp; - -typedef struct { - mclBnFp d[2]; -} mclBnFp2; - #endif #include