simple-saber : Simple implementation of Saber key exchange algorithm in Rust
The Saber scheme is a Key Encapsulation Mechanism (KEM), which allows a message to be encapsulated into a ciphertext that can only be decapsulated by the holder of the corresponding secret key. It is based on the Learning with Roundness (LWR) problem. This implementation is educational and experimental. For more informations and explanations, please see /docs/simple-saber.pdf. (Not created yet)
Warning
This code isn’t audited, isn’t intended for production use, is vulnerable to timing-based attacks, does not implement FO transform... Also, this is NOT the real saber algorithm. For example, here, Light/Saber/Fire variants differ by CBD noise parameter only; the module rank is fixed.
Quick start
To use it, simply do :
Then, in your code, you can use it as you want, e.g for encapsulating and decapsulating :
use ;
Parameters
The real saber parameters are :
In this implementation, saber scheme and parameters have been simplified.
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 :
Repository
simple-saber is a scheme from simple-crypto-lab.
License
This code is licensed under the same license as simple-crypto-lab, so under CECILL-B or APACHE 2.0 License, your choice.