Lines Matching refs:small

1699 typedef int8_t small;  typedef
1703 typedef small Inputs[p];
1707 static small F3_freeze(int16_t x) { return x - 3 * ((10923 * x + 16384) >> 15); } in F3_freeze()
1718 static int Weightw_mask(small *r) { in Weightw_mask()
1825 static void R3_fromRq(small *out, const Fq *r) { in R3_fromRq()
1830 static void R3_mult(small *h, const small *f, const small *g) { in R3_mult()
1841 static int R3_recip(small *out, const small *in) { in R3_recip()
1842 small f[p + 1], g[p + 1], v[p + 1], r[p + 1]; in R3_recip()
1877 static void Rq_mult_small(Fq *h, const Fq *f, const small *g) { in Rq_mult_small()
1903 static int Rq_recip3(Fq *out, const small *in) { in Rq_recip3()
1946 static void Short_fromlist(small *out, const uint32_t *in) { in Short_fromlist()
1973 static void Short_random(small *out) { in Short_random()
1980 static void Small_random(small *out) { in Small_random()
1985 static void KeyGen(Fq *h, small *f, small *ginv) { in KeyGen()
1986 small g[p]; in KeyGen()
2000 static void Encrypt(Fq *c, const small *r, const Fq *h) { in Encrypt()
2006 static void Decrypt(small *r, const Fq *c, const small *f, const small *ginv) { in Decrypt()
2008 small e[p], ev[p]; in Decrypt()
2019 static void Small_encode(unsigned char *s, const small *f) { in Small_encode()
2022 small x = 0; in Small_encode()
2029 static void Small_decode(small *f, const unsigned char *s) { in Small_decode()
2033 for (j = 0;j < 4;++j) *f++ = ((small)((x >> (2 * j)) & 3)) - 1; in Small_decode()
2035 *f++ = ((small)(*s & 3)) - 1; in Small_decode()
2072 small f[p], v[p]; in ZKeyGen()
2087 small f[p], v[p]; in ZDecrypt()