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 #else
typedef struct {
uint64_t d[MCLBN_FP_UNIT_SIZE];
} mclBnFp;
typedef struct {
mclBnFp d[2];
} mclBnFp2;
typedef struct { typedef struct {
uint64_t d[MCLBN_FR_UNIT_SIZE]; uint64_t d[MCLBN_FR_UNIT_SIZE];
} mclBnFr; } mclBnFr;
typedef struct { typedef struct {
uint64_t d[MCLBN_FP_UNIT_SIZE * 3]; mclBnFp x, y, z;
} mclBnG1; } mclBnG1;
typedef struct { typedef struct {
uint64_t d[MCLBN_FP_UNIT_SIZE * 2 * 3]; mclBnFp2 x, y, z;
} mclBnG2; } mclBnG2;
typedef struct { typedef struct {
uint64_t d[MCLBN_FP_UNIT_SIZE * 12]; mclBnFp d[12];
} mclBnGT; } mclBnGT;
typedef struct {
uint64_t d[MCLBN_FP_UNIT_SIZE];
} mclBnFp;
typedef struct {
mclBnFp d[2];
} mclBnFp2;
#endif #endif
#include <mcl/curve_type.h> #include <mcl/curve_type.h>

Loading…
Cancel
Save