Olivine logo
My main page / FHE from scratch / Maths Basics

Published October 18, 2026 · Updated October 19, 2026

By Mihai Maganu (m3m0ry)

Maths Basics

Gentle introduction in the maths needed to understand a basic BFV encryption scheme. This is by no means a complete tutorial for all the math but covers enough to implement your first ever Fully Homomorphic Encryption (or FHE) scheme. This implementation is not secure, high-performant or production capable. It's sole purpose is educational.