pub struct Argon2idParams { /* private fields */ }Expand description
Struct representing Argon2id parameters.
CDDL:
Argon2idParams = [3, Salt]Implementations§
Trait Implementations§
Source§impl Clone for Argon2idParams
impl Clone for Argon2idParams
Source§fn clone(&self) -> Argon2idParams
fn clone(&self) -> Argon2idParams
Returns a duplicate 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 Argon2idParams
impl Debug for Argon2idParams
Source§impl Default for Argon2idParams
impl Default for Argon2idParams
Source§impl Display for Argon2idParams
impl Display for Argon2idParams
Source§impl From<Argon2idParams> for CBOR
impl From<Argon2idParams> for CBOR
Source§fn from(val: Argon2idParams) -> Self
fn from(val: Argon2idParams) -> Self
Converts to this type from the input type.
Source§impl KeyDerivation for Argon2idParams
impl KeyDerivation for Argon2idParams
const INDEX: usize = 3usize
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 Argon2idParams
impl PartialEq for Argon2idParams
Source§impl TryFrom<CBOR> for Argon2idParams
impl TryFrom<CBOR> for Argon2idParams
impl Eq for Argon2idParams
impl StructuralPartialEq for Argon2idParams
Auto Trait Implementations§
impl Freeze for Argon2idParams
impl RefUnwindSafe for Argon2idParams
impl Send for Argon2idParams
impl Sync for Argon2idParams
impl Unpin for Argon2idParams
impl UnwindSafe for Argon2idParams
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