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

AES80

Security that is equivalent to the security of the 2TDEA cryptosystem. This choice of parameters is not secure and is only used for legacy.

AES112

This level of security is expected to be safe until 2030.

AES128

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.

AES192

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.

AES256

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.

Other

Fields

pk_bits: u32

The number of bits in a public key (factoring) modulus.

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.

Implementations

Returns the required modulus size for a given symmetric security level in the asymmetric setting.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Casts the value.

Casts the value.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Casts the value.

OverflowingCasts the value.

Casts the value.

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

UnwrappedCasts the value.

Casts the value.

WrappingCasts the value.