Struct snapper_box::crypto::key::EncryptedRootKey [−][src]
pub struct EncryptedRootKey { /* fields omitted */ }Expand description
Implementations
Attempts to decrypt the key with the provided password, and provide it as a RootKey
Errors
Will return:
Error::Argon2Failureif the argon2 key derivation failsError::BadHmacif the hmac verification failed, either due to incorrect password or corruptionError::KeyDeserializationif the key fails to deserialize, which really shouldn’t happen
Trait Implementations
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 RefUnwindSafe for EncryptedRootKey
impl Send for EncryptedRootKey
impl Sync for EncryptedRootKey
impl Unpin for EncryptedRootKey
impl UnwindSafe for EncryptedRootKey
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more