Struct nettle::cipher::Salsa20_256
source · pub struct Salsa20_256 { /* private fields */ }
Expand description
256 bit variant of D.J. Bernstein’s Salsa20 block cipher.
Implementations§
source§impl Salsa20_256
impl Salsa20_256
sourcepub const BLOCK_SIZE: usize = 64usize
pub const BLOCK_SIZE: usize = 64usize
Salsa20 block size in bytes.
sourcepub const NONCE_SIZE: usize = 8usize
pub const NONCE_SIZE: usize = 8usize
Salsa20 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
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Salsa20_256
impl Send for Salsa20_256
impl Sync for Salsa20_256
impl Unpin for Salsa20_256
impl UnwindSafe for Salsa20_256
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more