pub struct PasscodeWrap {
pub kdf: PasscodeKdf,
pub salt: Vec<u8>,
pub key_encrypted: Vec<u8>,
}Expand description
One passcode wrap of the local key.
Fields§
§kdf: PasscodeKdfKDF parameters and generation.
salt: Vec<u8>Salt of the passcode derivation, at least
kdf::PASSCODE_SALT_MIN_SIZE bytes.
key_encrypted: Vec<u8>The local key encrypted under the passcode key.
Trait Implementations§
Source§impl Clone for PasscodeWrap
impl Clone for PasscodeWrap
Source§impl Debug for PasscodeWrap
impl Debug for PasscodeWrap
impl Eq for PasscodeWrap
Source§impl PartialEq for PasscodeWrap
impl PartialEq for PasscodeWrap
impl StructuralPartialEq for PasscodeWrap
Auto Trait Implementations§
impl Freeze for PasscodeWrap
impl RefUnwindSafe for PasscodeWrap
impl Send for PasscodeWrap
impl Sync for PasscodeWrap
impl Unpin for PasscodeWrap
impl UnsafeUnpin for PasscodeWrap
impl UnwindSafe for PasscodeWrap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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