Enum scicrypt_traits::security::BitsOfSecurity [−][src]
pub enum BitsOfSecurity {
AES80,
AES112,
AES128,
AES192,
AES256,
Other {
pk_bits: u32,
},
}
Expand description
The number of bits of security as compared to the AES cryptosystem. Check https://www.keylength.com/en/4/ for recommendations.
Variants
Security that is equivalent to the security of the 2TDEA cryptosystem. This choice of parameters is not secure and is only used for legacy.
This level of security is expected to be safe until 2030.
Security that is equivalent to that of 128 bits in the AES cryptosystem. This level of security is expected to be safe until 2030 & beyond.
Security that is equivalent to that of 192 bits in the AES cryptosystem. This level of security is expected to be safe until 2030 & beyond.
Security that is equivalent to that of 256 bits in the AES cryptosystem. This level of security is expected to be safe until 2030 & beyond.
Security that is equivalent to a number of bits pk_bits
in accordance to the size of a
public key modulus. Note that any number lower than 1024 is considered extremely insecure.
Fields of Other
pk_bits: u32
The number of bits in a public key (factoring) modulus.
Implementations
Returns the required modulus size for a given symmetric security level in the asymmetric setting.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BitsOfSecurity
impl Send for BitsOfSecurity
impl Sync for BitsOfSecurity
impl Unpin for BitsOfSecurity
impl UnwindSafe for BitsOfSecurity
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
Casts the value.
Casts the value.