change members of mclBn{Fp,G1,G2}

update-fork
MITSUNARI Shigeo 5 years ago
parent 1d7c99e8a7
commit 68f332d0ae
  1. 22
      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 <mcl/curve_type.h>

Loading…
Cancel
Save