Struct jacopone::CipherData
source · pub struct CipherData {
pub message: Arc<Vec<u8>>,
pub key: Arc<Vec<u8>>,
pub nonce: Arc<Vec<u8>>,
pub counter: u64,
}
Fields§
§message: Arc<Vec<u8>>
§key: Arc<Vec<u8>>
§nonce: Arc<Vec<u8>>
§counter: u64
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, start: usize, end: usize) -> CipherData
pub fn clone_slice(other: &CipherData, start: usize, end: usize) -> CipherData
Return references to portions of original message and different counter
new message is a reference from start to end block of other.message
new counter is other.counter incremented by end