Lines Matching refs:FiniteField
69 EpidStatus NewFiniteField(BigNumStr const* prime, FiniteField** ff) { in NewFiniteField()
72 FiniteField* finitefield_ptr = NULL; in NewFiniteField()
139 finitefield_ptr = (FiniteField*)SAFE_ALLOC(sizeof(FiniteField)); in NewFiniteField()
164 EpidStatus NewFiniteFieldViaBinomalExtension(FiniteField const* ground_field, in NewFiniteFieldViaBinomalExtension()
166 int degree, FiniteField** ff) { in NewFiniteFieldViaBinomalExtension()
170 FiniteField* finitefield_ptr = NULL; in NewFiniteFieldViaBinomalExtension()
219 finitefield_ptr = (FiniteField*)SAFE_ALLOC(sizeof(FiniteField)); in NewFiniteFieldViaBinomalExtension()
241 WriteFfElement((FiniteField*)ground_field, ground_element, ff_elem_str, in NewFiniteFieldViaBinomalExtension()
259 finitefield_ptr->ground_ff = (FiniteField*)ground_field; in NewFiniteFieldViaBinomalExtension()
275 EpidStatus NewFiniteFieldViaPolynomialExtension(FiniteField const* ground_field, in NewFiniteFieldViaPolynomialExtension()
277 int degree, FiniteField** ff) { in NewFiniteFieldViaPolynomialExtension()
280 FiniteField* finitefield_ptr = NULL; in NewFiniteFieldViaPolynomialExtension()
334 status = ReadFfElement((FiniteField*)ground_field, &irr_polynomial[i], in NewFiniteFieldViaPolynomialExtension()
363 finitefield_ptr = (FiniteField*)SAFE_ALLOC(sizeof(FiniteField)); in NewFiniteFieldViaPolynomialExtension()
378 finitefield_ptr->ground_ff = (FiniteField*)ground_field; in NewFiniteFieldViaPolynomialExtension()
400 void DeleteFiniteField(FiniteField** ff) { in DeleteFiniteField()
410 EpidStatus NewFfElement(FiniteField const* ff, FfElement** new_ff_elem) { in NewFfElement()
477 FiniteField const* ff) { in IsValidFfElemOctString()
481 FiniteField const* basic_ff; in IsValidFfElemOctString()
529 FfElement* ff_elem, FiniteField* ff) { in SetFfElementOctString()
573 EpidStatus ReadFfElement(FiniteField* ff, ConstOctStr ff_elem_str, in ReadFfElement()
633 EpidStatus GetFiniteFieldPrime(FiniteField* ff, BigNum** bn) { in GetFiniteFieldPrime()
647 EpidStatus InitFfElementFromBn(FiniteField* ff, BigNum* bn, in InitFfElementFromBn()
702 EpidStatus WriteFfElement(FiniteField* ff, FfElement const* ff_elem, in WriteFfElement()
750 EpidStatus FfNeg(FiniteField* ff, FfElement const* a, FfElement* r) { in FfNeg()
771 EpidStatus FfInv(FiniteField* ff, FfElement const* a, FfElement* r) { in FfInv()
796 EpidStatus FfAdd(FiniteField* ff, FfElement const* a, FfElement const* b, in FfAdd()
819 EpidStatus FfSub(FiniteField* ff, FfElement const* a, FfElement const* b, in FfSub()
843 EpidStatus FfMul(FiniteField* ff, FfElement const* a, FfElement const* b, in FfMul()
877 EpidStatus FfIsZero(FiniteField* ff, FfElement const* a, bool* is_zero) { in FfIsZero()
906 EpidStatus FfExp(FiniteField* ff, FfElement const* a, BigNum const* b, in FfExp()
962 EpidStatus FfMultiExp(FiniteField* ff, FfElement const** p, BigNumStr const** b, in FfMultiExp()
1076 EpidStatus FfMultiExpBn(FiniteField* ff, FfElement const** p, BigNum const** b, in FfMultiExpBn()
1178 EpidStatus FfSscmMultiExp(FiniteField* ff, FfElement const** p, in FfSscmMultiExp()
1185 EpidStatus FfIsEqual(FiniteField* ff, FfElement const* a, FfElement const* b, in FfIsEqual()
1213 EpidStatus FfHash(FiniteField* ff, ConstOctStr msg, size_t msg_len, in FfHash()
1268 EpidStatus FfGetRandom(FiniteField* ff, BigNumStr const* low_bound, in FfGetRandom()
1323 EpidStatus FfSqrt(FiniteField* ff, FfElement const* a, FfElement* r) { in FfSqrt()