simple-bfv : Simple implementation of BFV FHE scheme in Rust
The BFV (Brakerski/Fan-Vercauteren) is a Fully Homomorphic Encryption scheme (FHE), which allows data to be processed while still encrypted. This implementation is educational and experimental. For more informations and explanations, please see /docs/simple-bfv.pdf.
Warning
This code isn’t audited, isn’t intended for production use, is vulnerable to timing-based attacks... So please don’t use it seriously. But, you can use it to experiment with BFV encryption, implement an e-voting or PIR with it, for example.
Quick start
To use it, simply do :
Then, in your code, you can use it as you want :
use ;
Tests & modifications
To run the tests, or modify the code, you can git clone the repo, and then run the tests or do any modification you want :
License
This code is licensed under the same license as simple-crypto-lab, so under MIT or APACHE 2.0 License, your choice.