pub struct Parts {
pub salt: [u8; 32],
pub nonce: [u8; 24],
pub sealed: Vec<u8>,
}Expand description
The three parts of a v2 wrap.
Fields§
§salt: [u8; 32]The HKDF salt.
nonce: [u8; 24]The XChaCha20-Poly1305 nonce.
sealed: Vec<u8>Ciphertext and tag.
Trait Implementations§
impl Eq for Parts
impl StructuralPartialEq for Parts
Auto Trait Implementations§
impl Freeze for Parts
impl RefUnwindSafe for Parts
impl Send for Parts
impl Sync for Parts
impl Unpin for Parts
impl UnsafeUnpin for Parts
impl UnwindSafe for Parts
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