Struct nettle::cipher::insecure_do_not_use::Des[][src]

pub struct Des { /* fields omitted */ }
Expand description

The Data Encryption Standard (DES) defined in FIPS 46-3.

Note

DES is no longer considered a secure cipher. Only use it for legacy applications.

Implementations

Creates a new instance with key that can be used for both encryption and decryption.

Checks the parity bits of the given DES key. Returns true if parity is correct, false otherwise.

Sets the parity bits in the given DES key.

Trait Implementations

Block size in bytes.

Maximal key size in bytes.

Creates a new cipher instance for encryption. The key parameter must have size KEY_SIZE. Read more

Creates a new cipher instance for decryption. The key parameter must have size KEY_SIZE. Read more

Encrypt src into dst. Both must have the same length. That length must be a multiple of BLOCK_SIZE. Blocks are processed in ECB mode. Read more

Decrypt src into dst. Both must have the same length. That length must be a multiple of BLOCK_SIZE. Blocks are processed in ECB mode. Read more

Returns a pointer to the C context struct of the cipher instance. Used internally by block modi. Read more

Pointer to the *_encrypt C function. Used internally for block modi.

Pointer to the *_decrypt C function. Used internally for block modi.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.