Lines Matching refs:Fq
1700 typedef int16_t Fq; typedef
1709 static Fq Fq_freeze(int32_t x) { in Fq_freeze()
1825 static void R3_fromRq(small *out, const Fq *r) { in R3_fromRq()
1877 static void Rq_mult_small(Fq *h, const Fq *f, const small *g) { in Rq_mult_small()
1888 static void Rq_mult3(Fq *h, const Fq *f) { in Rq_mult3()
1893 static Fq Fq_recip(Fq a1) { in Fq_recip()
1895 Fq ai = a1; in Fq_recip()
1903 static int Rq_recip3(Fq *out, const small *in) { in Rq_recip3()
1904 Fq f[p + 1], g[p + 1], v[p + 1], r[p + 1], scale; in Rq_recip3()
1941 static void Round(Fq *out, const Fq *a) { in Round()
1985 static void KeyGen(Fq *h, small *f, small *ginv) { in KeyGen()
1987 Fq finv[p]; in KeyGen()
2000 static void Encrypt(Fq *c, const small *r, const Fq *h) { in Encrypt()
2001 Fq hr[p]; in Encrypt()
2006 static void Decrypt(small *r, const Fq *c, const small *f, const small *ginv) { in Decrypt()
2007 Fq cf[p], cf3[p]; in Decrypt()
2038 static void Rq_encode(unsigned char *s, const Fq *r) { in Rq_encode()
2046 static void Rq_decode(Fq *r, const unsigned char *s) { in Rq_decode()
2051 for (i = 0; i < p; ++i) r[i] = ((Fq)R[i]) - q12; in Rq_decode()
2054 static void Rounded_encode(unsigned char *s, const Fq *r) { in Rounded_encode()
2062 static void Rounded_decode(Fq *r, const unsigned char *s) { in Rounded_decode()
2071 Fq h[p]; in ZKeyGen()
2080 Fq h[p], c[p]; in ZEncrypt()
2088 Fq c[p]; in ZDecrypt()