Lines Matching refs:FpElem
31 ((sizeof(FpElem) + EPID_SLEN / CHAR_BIT) / sizeof(uint32_t))
36 static FpElem const one = {{{1, 0, 0, 0, 0, 0, 0, 0}}};
41 int FpInField(FpElem const* in) { return (VliCmp(&in->limbs, &epid20_p) < 0); } in FpInField()
43 void FpAdd(FpElem* result, FpElem const* left, FpElem const* right) { in FpAdd()
47 void FpMul(FpElem* result, FpElem const* left, FpElem const* right) { in FpMul()
51 void FpSub(FpElem* result, FpElem const* left, FpElem const* right) { in FpSub()
55 void FpExp(FpElem* result, FpElem const* base, VeryLargeInt const* exp) { in FpExp()
59 void FpNeg(FpElem* result, FpElem const* in) { in FpNeg()
64 int FpEq(FpElem const* left, FpElem const* right) { in FpEq()
68 void FpInv(FpElem* result, FpElem const* in) { in FpInv()
72 int FpRand(FpElem* result, BitSupplier rnd_func, void* rnd_param) { in FpRand()
78 if (rnd_func(t, sizeof(FpElem) * CHAR_BIT + EPID_SLEN, rnd_param)) { in FpRand()
88 int FpRandNonzero(FpElem* result, BitSupplier rnd_func, void* rnd_param) { in FpRandNonzero()
93 if (rnd_func(t, sizeof(FpElem) * CHAR_BIT + EPID_SLEN, rnd_param)) { in FpRandNonzero()
105 void FpClear(FpElem* result) { VliClear(&result->limbs); } in FpClear()
107 void FpSet(FpElem* result, uint32_t in) { in FpSet()
112 void FpFromHash(FpElem* result, unsigned char const* hash, size_t len) { in FpFromHash()