pub struct EncryptedData {
pub ciphertext: Vec<u8>,
pub nonce: [u8; 24],
}Expand description
Encrypted data with nonce for authenticated decryption.
Fields§
§ciphertext: Vec<u8>The encrypted ciphertext with authentication tag.
nonce: [u8; 24]The nonce used for encryption.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for EncryptedData
impl Freeze for EncryptedData
impl Move for EncryptedData
impl RefUnwindSafe for EncryptedData
impl Send for EncryptedData
impl Sync for EncryptedData
impl Unpin for EncryptedData
impl UnsafeUnpin for EncryptedData
impl UnwindSafe for EncryptedData
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