pub enum Key {
Raw(Zeroizing<Vec<u8>>),
Passphrase(Zeroizing<String>),
}Expand description
Client-supplied encryption credential. Raw is high-entropy key bytes
(derived via HKDF); Passphrase is a human secret (derived via Argon2id).
Both are zeroized on drop. Clone is needed because Options is consumed
by open while rotation APIs may also hold a key.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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