pub struct ScryptParams { /* private fields */ }Expand description
Struct representing Scrypt parameters.
CDDL:
ScryptParams = [2, Salt, log_n: uint, r: uint, p: uint]Implementations§
Trait Implementations§
Source§impl Clone for ScryptParams
impl Clone for ScryptParams
Source§fn clone(&self) -> ScryptParams
fn clone(&self) -> ScryptParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScryptParams
impl Debug for ScryptParams
Source§impl Display for ScryptParams
impl Display for ScryptParams
Source§impl Into<CBOR> for ScryptParams
impl Into<CBOR> for ScryptParams
Source§impl KeyDerivation for ScryptParams
impl KeyDerivation for ScryptParams
const INDEX: usize = 2usize
fn lock( &mut self, content_key: &SymmetricKey, secret: impl AsRef<[u8]>, ) -> Result<EncryptedMessage>
fn unlock( &self, encrypted_message: &EncryptedMessage, secret: impl AsRef<[u8]>, ) -> Result<SymmetricKey>
Source§impl PartialEq for ScryptParams
impl PartialEq for ScryptParams
Source§impl TryFrom<CBOR> for ScryptParams
impl TryFrom<CBOR> for ScryptParams
impl Eq for ScryptParams
impl StructuralPartialEq for ScryptParams
Auto Trait Implementations§
impl Freeze for ScryptParams
impl RefUnwindSafe for ScryptParams
impl Send for ScryptParams
impl Sync for ScryptParams
impl Unpin for ScryptParams
impl UnwindSafe for ScryptParams
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