Skip to main content

SecurityLevel

Trait SecurityLevel 

Source
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§

Source

const RSA_PRIME_BITLEN: u32

Length of RSA prime that matches the security level

Source

const RSA_PUBKEY_BITLEN: u32

Minimal length of RSA public key (bi-prime $N = pq$) that matches the security level

Source

const EPSILON: usize

$\varepsilon$ bits

Source

const ELL: usize

$\ell$ parameter

Source

const ELL_PRIME: usize

$\ell’$ parameter

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.

Implementors§