pub struct CipherData { /* private fields */ }
Implementations§
Source§impl CipherData
impl CipherData
Sourcepub fn new(
message: Vec<u8>,
key: Vec<u8>,
nonce: Vec<u8>,
counter: u64,
) -> CipherData
pub fn new( message: Vec<u8>, key: Vec<u8>, nonce: Vec<u8>, counter: u64, ) -> CipherData
Create new references to message, key, nonce, and counter and store them in CipherData
Sourcepub fn clone(other: &CipherData) -> CipherData
pub fn clone(other: &CipherData) -> CipherData
Clone the references
Sourcepub fn clone_slice(other: &CipherData, s: usize, e: usize) -> CipherData
pub fn clone_slice(other: &CipherData, s: usize, e: usize) -> CipherData
Return references to portions of original message and different counter. New message is a reference from start to end blocks of other.message while new counter is equals to other.counter incremented by end
pub fn get_message(&self) -> &Arc<Vec<u8>>
pub fn get_key(&self) -> &Arc<Vec<u8>>
pub fn get_nonce(&self) -> &Arc<Vec<u8>>
pub fn get_counter(&self) -> u64
pub fn get_start(&self) -> usize
pub fn get_blocks_len(&self) -> usize
pub fn get_round_keys(&self) -> &Arc<Vec<Vec<u8>>>
Auto Trait Implementations§
impl Freeze for CipherData
impl RefUnwindSafe for CipherData
impl Send for CipherData
impl Sync for CipherData
impl Unpin for CipherData
impl UnwindSafe for CipherData
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