Crate discrete_gaussian

Source
Expand description

Build Docs Version

Discrete gaussian samples based on FACCT and DDLL13. Implemented with ~40 bits of accuracy (relative error <= 2^-40). Based on the analysis in WALT19 this implies an upper bound of 2^80 security in constructions.

Re-exports§

pub use ctime::sample;
pub use vtime::sample_vartime;
pub use vtime::sample_vartime_k;

Modules§

ctime
Functions that are conjectured to be constant time.
vtime
Variable time discrete sampling over algebraic structures.

Constants§

THETA_0
Approximation of sqrt(1/(2*ln(2))) as defined in FACCT page 6

Functions§

k_from_theta
Approximate a k value for the requested theta.