pub trait SecurityLevel: KeygenSecurityLevel {
const RSA_PRIME_BITLEN: u32;
const RSA_PUBKEY_BITLEN: u32;
const EPSILON: usize;
const ELL: usize;
const ELL_PRIME: usize;
}Expand description
Security level of the CGGMP24 protocol
You should not implement this trait manually. Use define_security_level macro instead.
Required Associated Constants§
Sourceconst RSA_PRIME_BITLEN: u32
const RSA_PRIME_BITLEN: u32
Length of RSA prime that matches the security level
Sourceconst RSA_PUBKEY_BITLEN: u32
const RSA_PUBKEY_BITLEN: u32
Minimal length of RSA public key (bi-prime $N = pq$) that matches the security level
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.