Implementations from scratch done while studying some FHE papers; do not use in production.
arith
: contains $\mathbb{Z}_q$, $R_q=\mathbb{Z}_q/(X^N+1)$ and $R=\mathbb{Z}/(X^N+1)$ arithmetic implementations, together with the NTT implementation.bfv
: https://eprint.iacr.org/2012/144.pdf scheme implementationckks
: https://eprint.iacr.org/2016/421.pdf scheme implementation