Struct shannon::Shannon
[−]
[src]
pub struct Shannon { pub R: [u32; 16], pub CRC: [u32; 16], pub initR: [u32; 16], pub konst: u32, pub sbuf: u32, pub mbuf: u32, pub nbuf: usize, }
Fields
R: [u32; 16]
CRC: [u32; 16]
initR: [u32; 16]
konst: u32
sbuf: u32
mbuf: u32
nbuf: usize
Methods
impl Shannon
[src]
fn new(key: &[u8]) -> Shannon
fn nonce(&mut self, nonce: &[u8])
fn encrypt(&mut self, buf: &mut [u8])
fn decrypt(&mut self, buf: &mut [u8])
fn finish(&mut self, buf: &mut [u8])
fn nonce_u32(&mut self, n: u32)
fn check_mac(&mut self, expected: &[u8]) -> Result<()>
Trait Implementations
impl Clone for Shannon
[src]
fn clone(&self) -> Shannon
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more