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

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

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

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.

Performs the conversion.

Performs the conversion.

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.

Casts the value.