pub struct Passphrase { /* private fields */ }Expand description
Passphrase used to hash given input password used to
encrypt the private keys and depends to KdfParams
Implementations§
Source§impl Passphrase
impl Passphrase
pub fn new(params: KdfParams) -> Self
pub fn hash( &self, password: String, salt: SaltBytes, ) -> Result<KeyBytesRange, PassphraseError>
Auto Trait Implementations§
impl Freeze for Passphrase
impl RefUnwindSafe for Passphrase
impl Send for Passphrase
impl Sync for Passphrase
impl Unpin for Passphrase
impl UnsafeUnpin for Passphrase
impl UnwindSafe for Passphrase
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