pub struct EncryptedDocument {
pub nonce: [u8; 12],
pub ciphertext: Vec<u8>,
}Expand description
An encrypted HIVE document
Contains the nonce and ciphertext (which includes the 16-byte Poly1305 auth tag).
Fields§
§nonce: [u8; 12]12-byte random nonce
ciphertext: Vec<u8>Ciphertext with appended 16-byte auth tag
Implementations§
Trait Implementations§
Source§impl Clone for EncryptedDocument
impl Clone for EncryptedDocument
Source§fn clone(&self) -> EncryptedDocument
fn clone(&self) -> EncryptedDocument
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 moreAuto Trait Implementations§
impl Freeze for EncryptedDocument
impl RefUnwindSafe for EncryptedDocument
impl Send for EncryptedDocument
impl Sync for EncryptedDocument
impl Unpin for EncryptedDocument
impl UnwindSafe for EncryptedDocument
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