Struct cryptonite::cipher::Config
[−]
[src]
pub struct Config { /* fields omitted */ }
Configuration for stream adapters.
Methods
impl Config
[src]
fn new(algo: Algorithm) -> Config
[src]
Initialize a config given an algorithm.
fn key_mut(&mut self) -> &mut [u8]
[src]
Get a mutable slice of bytes to set the encryption key to be used for the cipher.
fn iv_mut(&mut self) -> Option<&mut [u8]>
[src]
Get a mutable slice of bytes to set the initialization vector to be used for the cipher.
Returns None
if the selected algorithm does not require an IV.
Trait Implementations
impl Clone for Config
[src]
fn clone(&self) -> Config
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more