Struct nettle::cipher::Salsa20R12_128
source · pub struct Salsa20R12_128 { /* private fields */ }
Expand description
128 bit variant of D.J. Bernstein’s Salsa20/12 block cipher.
Note
Salsa20/12 it a reduced round version of Salsa20.
Implementations§
source§impl Salsa20R12_128
impl Salsa20R12_128
sourcepub const BLOCK_SIZE: usize = 64usize
pub const BLOCK_SIZE: usize = 64usize
Salsa20/12 block size in bytes.
sourcepub const NONCE_SIZE: usize = 8usize
pub const NONCE_SIZE: usize = 8usize
Salsa20/12 nonce size in bytes.
sourcepub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result<Self>
pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result<Self>
Create a new instance with key
.