pub struct PasswordWrappedKey<V: PwWrapVersion, K: SealingKey> { /* private fields */ }Expand description
An password encrypted Key.
- Encrypted using
Key::password_wrap - Decrypted using
PasswordWrappedKey::unwrap
Implementations§
Source§impl<V: PwWrapVersion, K: SealingKey> PasswordWrappedKey<V, K>
impl<V: PwWrapVersion, K: SealingKey> PasswordWrappedKey<V, K>
Sourcepub fn params(&self) -> Result<V::Params, PasetoError>
pub fn params(&self) -> Result<V::Params, PasetoError>
Extract the parameters the key was encrypted with.
Source§impl<V: PwWrapVersion + HasKey<K>, K: SealingKey> PasswordWrappedKey<V, K>
impl<V: PwWrapVersion + HasKey<K>, K: SealingKey> PasswordWrappedKey<V, K>
Trait Implementations§
Source§impl<V: PwWrapVersion, K: SealingKey> Display for PasswordWrappedKey<V, K>
impl<V: PwWrapVersion, K: SealingKey> Display for PasswordWrappedKey<V, K>
Source§impl<V: PwWrapVersion, K: SealingKey> FromStr for PasswordWrappedKey<V, K>
impl<V: PwWrapVersion, K: SealingKey> FromStr for PasswordWrappedKey<V, K>
Auto Trait Implementations§
impl<V, K> Freeze for PasswordWrappedKey<V, K>
impl<V, K> RefUnwindSafe for PasswordWrappedKey<V, K>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<V, K> Send for PasswordWrappedKey<V, K>
impl<V, K> Sync for PasswordWrappedKey<V, K>
impl<V, K> Unpin for PasswordWrappedKey<V, K>
impl<V, K> UnwindSafe for PasswordWrappedKey<V, K>where
V: UnwindSafe,
K: UnwindSafe,
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