pub struct Argon2idRecipient { /* private fields */ }Expand description
Argon2id recipient — full KDF encryption path.
Used during kin init and when no cached material is available.
Generates a random salt, derives a wrapping key via Argon2id,
and wraps the FileKey using ChaCha20-Poly1305 (via age’s AEAD primitives).
Implementations§
Source§impl Argon2idRecipient
impl Argon2idRecipient
Sourcepub fn new(passphrase: &[u8], params: Argon2Params) -> Self
pub fn new(passphrase: &[u8], params: Argon2Params) -> Self
Create a new recipient from a passphrase and Argon2id parameters.
Trait Implementations§
Source§impl Recipient for Argon2idRecipient
impl Recipient for Argon2idRecipient
Auto Trait Implementations§
impl Freeze for Argon2idRecipient
impl RefUnwindSafe for Argon2idRecipient
impl Send for Argon2idRecipient
impl Sync for Argon2idRecipient
impl Unpin for Argon2idRecipient
impl UnsafeUnpin for Argon2idRecipient
impl UnwindSafe for Argon2idRecipient
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