Struct cryptonite::cipher::Config [] [src]

pub struct Config { /* fields omitted */ }

Configuration for stream adapters.

Methods

impl Config
[src]

[src]

Initialize a config given an algorithm.

[src]

Get a mutable slice of bytes to set the encryption key to be used for the cipher.

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Config
[src]

[src]

Formats the value using the given formatter.