Struct nettle::cipher::Twofish[][src]

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

The Twofish block cipher.

Implementations

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

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.