Struct radicle_keystore::crypto::Pwhash
source · [−]pub struct Pwhash<P> { /* private fields */ }
Expand description
A Crypto
implementation based on libsodium
’s “secretbox”.
While historically based on libsodium
, the underlying implementation is
now based on the chacha20poly1305
crate. The encryption key is derived
from a passphrase using scrypt
.
The resulting SecretBox
stores the ciphertext alongside cleartext salt
and nonce values.
Implementations
Trait Implementations
Auto Trait Implementations
impl<P> RefUnwindSafe for Pwhash<P> where
P: RefUnwindSafe,
impl<P> Send for Pwhash<P> where
P: Send,
impl<P> Sync for Pwhash<P> where
P: Sync,
impl<P> Unpin for Pwhash<P> where
P: Unpin,
impl<P> UnwindSafe for Pwhash<P> where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more