|
|
@ -23,6 +23,7 @@ void mclx_Fp_neg(Unit*, const Unit*); |
|
|
|
void mclx_FpDbl_mod(Unit*, const Unit*); |
|
|
|
void mclx_FpDbl_mod(Unit*, const Unit*); |
|
|
|
void mclx_Fp_mul(Unit*, const Unit*, const Unit*); |
|
|
|
void mclx_Fp_mul(Unit*, const Unit*, const Unit*); |
|
|
|
void mclx_Fp_sqr(Unit*, const Unit*); |
|
|
|
void mclx_Fp_sqr(Unit*, const Unit*); |
|
|
|
|
|
|
|
void mclx_Fp_mul2(Unit*, const Unit*); |
|
|
|
void mclx_FpDbl_add(Unit*, const Unit*, const Unit*); |
|
|
|
void mclx_FpDbl_add(Unit*, const Unit*, const Unit*); |
|
|
|
void mclx_FpDbl_sub(Unit*, const Unit*, const Unit*); |
|
|
|
void mclx_FpDbl_sub(Unit*, const Unit*, const Unit*); |
|
|
|
int mclx_Fp_preInv(Unit*, const Unit*); |
|
|
|
int mclx_Fp_preInv(Unit*, const Unit*); |
|
|
@ -45,6 +46,7 @@ void mclx_Fr_shr1(Unit*, const Unit*); |
|
|
|
void mclx_Fr_neg(Unit*, const Unit*); |
|
|
|
void mclx_Fr_neg(Unit*, const Unit*); |
|
|
|
void mclx_Fr_mul(Unit*, const Unit*, const Unit*); |
|
|
|
void mclx_Fr_mul(Unit*, const Unit*, const Unit*); |
|
|
|
void mclx_Fr_sqr(Unit*, const Unit*); |
|
|
|
void mclx_Fr_sqr(Unit*, const Unit*); |
|
|
|
|
|
|
|
void mclx_Fr_mul2(Unit*, const Unit*); |
|
|
|
int mclx_Fr_preInv(Unit*, const Unit*); |
|
|
|
int mclx_Fr_preInv(Unit*, const Unit*); |
|
|
|
} // extern "C"
|
|
|
|
} // extern "C"
|
|
|
|
|
|
|
|
|
|
|
@ -61,6 +63,7 @@ void setStaticCode(mcl::fp::Op& op) |
|
|
|
op.fpDbl_modA_ = mclx_FpDbl_mod; |
|
|
|
op.fpDbl_modA_ = mclx_FpDbl_mod; |
|
|
|
op.fp_mulA_ = mclx_Fp_mul; |
|
|
|
op.fp_mulA_ = mclx_Fp_mul; |
|
|
|
op.fp_sqrA_ = mclx_Fp_sqr; |
|
|
|
op.fp_sqrA_ = mclx_Fp_sqr; |
|
|
|
|
|
|
|
op.fp_mul2A_ = mclx_Fp_mul2; |
|
|
|
op.fpDbl_addA_ = mclx_FpDbl_add; |
|
|
|
op.fpDbl_addA_ = mclx_FpDbl_add; |
|
|
|
op.fpDbl_subA_ = mclx_FpDbl_sub; |
|
|
|
op.fpDbl_subA_ = mclx_FpDbl_sub; |
|
|
|
op.fpDbl_addPre = mclx_FpDbl_addPre; |
|
|
|
op.fpDbl_addPre = mclx_FpDbl_addPre; |
|
|
@ -85,6 +88,7 @@ void setStaticCode(mcl::fp::Op& op) |
|
|
|
op.fp_negA_ = mclx_Fr_neg; |
|
|
|
op.fp_negA_ = mclx_Fr_neg; |
|
|
|
op.fp_mulA_ = mclx_Fr_mul; |
|
|
|
op.fp_mulA_ = mclx_Fr_mul; |
|
|
|
op.fp_sqrA_ = mclx_Fr_sqr; |
|
|
|
op.fp_sqrA_ = mclx_Fr_sqr; |
|
|
|
|
|
|
|
op.fp_mul2A_ = mclx_Fr_mul2; |
|
|
|
op.fp_preInv = mclx_Fr_preInv; |
|
|
|
op.fp_preInv = mclx_Fr_preInv; |
|
|
|
} |
|
|
|
} |
|
|
|
op.fp_mul = fp::func_ptr_cast<void4u>(op.fp_mulA_); |
|
|
|
op.fp_mul = fp::func_ptr_cast<void4u>(op.fp_mulA_); |
|
|
|