Expand description
Functions related to calculating security and correctness parameters.
Structs§
- Outside
Constraints Error - Error for when a value is outside the constraints of a polytope.
Functions§
- evaluate_
polynomial_ 2d - Evaluate a 2D polynomial with coefficients in increasing order of degree along both dimensions.
- lwe_
security_ level_ to_ std - Returns the LWE standard deviation for a given dimension and security level, normalized to the ciphertext modulus (calculated with 2^64 as the modulus). Valid from 368 to 2048 dimensions and 78 to 130 bits of security. Assumes that the private key is binary.
- lwe_
std_ to_ security_ level - Returns the LWE security level for a given dimension and standard deviation, normalized to the ciphertext modulus (calculated with 2^64 as the modulus). Valid from 368 to 2048 dimensions and 78 to 130 bits of security. Assumes that the private key is binary.
- probability_
away_ from_ mean_ gaussian - Returns the log10 of the probability of being farther than x away from the mean given a standard deviation. We return the log to handle very low probabilities.
Type Aliases§
- Security
Level Result - Result type for
lwe_std_to_security_level
. - Standard
Deviation Result - Result type for
lwe_security_level_to_std
.