| Crates.io | discrete-gaussian |
| lib.rs | discrete-gaussian |
| version | 0.0.6 |
| created_at | 2024-10-10 00:12:33.564789+00 |
| updated_at | 2024-10-29 01:42:04.318506+00 |
| description | Gaussian sampling over discrete fields/rings/sets |
| homepage | https://github.com/chancehudson/discrete-gaussian |
| repository | https://github.com/chancehudson/discete-gaussian |
| max_upload_size | |
| id | 1403246 |
| size | 25,522 |
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.
cargo run --example vartime --release
Sampling with target theta: 20
Approximated k = 23
Approximated theta: 19.534401406624458
1000 samples in: 16.90ms
u32
u32
ring_math::Matrix2D compat, sample into a matrixring_math::Vector compat, sample into a vector