Struct jacopone::CipherData
source · 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