|
|
@ -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> |
|
|
|