Struct nettle::cipher::Twofish [−][src]
pub struct Twofish { /* fields omitted */ }
Expand description
The Twofish block cipher.
Implementations
Trait Implementations
Block 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
impl RefUnwindSafe for Twofish
impl UnwindSafe for Twofish