pub struct Stanza {
pub t: String,
pub salt: ByteBuf,
pub m_kib: u32,
pub t_cost: u32,
pub p: u32,
pub eph: ByteBuf,
pub ct: ByteBuf,
pub wrapped: ByteBuf,
}Expand description
One way to unlock the archive key. t selects the stanza type:
argon2id— passphrase:salt,m_kib,t_cost,px25519mlkem768— hybrid recipient:eph(ephemeral X25519 public key),ct(ML-KEM-768 ciphertext)
In both cases wrapped = nonce (24 B) ‖ XChaCha20-Poly1305(DEK) under the derived KEK.
Fields§
§t: String§salt: ByteBuf§m_kib: u32§t_cost: u32§p: u32§eph: ByteBuf§ct: ByteBuf§wrapped: ByteBufTrait Implementations§
Source§impl<'de> Deserialize<'de> for Stanza
impl<'de> Deserialize<'de> for Stanza
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Stanza
impl RefUnwindSafe for Stanza
impl Send for Stanza
impl Sync for Stanza
impl Unpin for Stanza
impl UnsafeUnpin for Stanza
impl UnwindSafe for Stanza
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more