#[non_exhaustive]pub enum KdfAlgorithm {
Argon2id,
Pbkdf2,
ConcatKdf,
Kmac256,
}Expand description
Password-based key derivation algorithm identifier.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Argon2id
Argon2id memory-hard KDF.
Pbkdf2
PBKDF2 password-based KDF conforming to RFC 8018.
ConcatKdf
NIST Concat KDF as profiled by JOSE/JWA ECDH-ES.
Kmac256
KMAC256 from NIST SP 800-185.
Trait Implementations§
Source§impl Clone for KdfAlgorithm
impl Clone for KdfAlgorithm
Source§fn clone(&self) -> KdfAlgorithm
fn clone(&self) -> KdfAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KdfAlgorithm
Source§impl Debug for KdfAlgorithm
impl Debug for KdfAlgorithm
Source§impl Display for KdfAlgorithm
impl Display for KdfAlgorithm
impl Eq for KdfAlgorithm
Source§impl PartialEq for KdfAlgorithm
impl PartialEq for KdfAlgorithm
impl StructuralPartialEq for KdfAlgorithm
Auto Trait Implementations§
impl Freeze for KdfAlgorithm
impl RefUnwindSafe for KdfAlgorithm
impl Send for KdfAlgorithm
impl Sync for KdfAlgorithm
impl Unpin for KdfAlgorithm
impl UnsafeUnpin for KdfAlgorithm
impl UnwindSafe for KdfAlgorithm
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