pub struct AesCiphertextPackage {
pub nonce: GcmNonce,
pub ciphertext: Vec<u8>,
}Expand description
Format for storing both ciphertext and nonce together
Fields§
§nonce: GcmNonceThe nonce used for encryption
ciphertext: Vec<u8>The encrypted data
Implementations§
Trait Implementations§
Source§impl Clone for AesCiphertextPackage
impl Clone for AesCiphertextPackage
Source§fn clone(&self) -> AesCiphertextPackage
fn clone(&self) -> AesCiphertextPackage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AesCiphertextPackage
impl Debug for AesCiphertextPackage
Auto Trait Implementations§
impl Freeze for AesCiphertextPackage
impl RefUnwindSafe for AesCiphertextPackage
impl Send for AesCiphertextPackage
impl Sync for AesCiphertextPackage
impl Unpin for AesCiphertextPackage
impl UnwindSafe for AesCiphertextPackage
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