Trait cggmp21::security_level::SecurityLevel
source · pub trait SecurityLevel: KeygenSecurityLevel {
const EPSILON: usize;
const ELL: usize;
const ELL_PRIME: usize;
const M: usize;
// Required method
fn q() -> Integer;
}
Expand description
Security level of the CGGMP21 protocol
You should not implement this trait manually. Use define_security_level macro instead.
Required Associated Constants§
sourceconst M: usize
const M: usize
$m$ parameter
Note: currently, security parameter $m$ is hardcoded to M = 128
due to compiler limitations.
If you implement this trait directly, actual value of $m$ will be ignored. If you’re using define_security_level macro
it will produce a compilation error if different value of $m$ is set. We’re going to fix that once generic_const_exprs
feature is stable.
Required Methods§
Object Safety§
This trait is not object safe.