Enum tindercrypt::metadata::KeyDerivationAlgorithm [−][src]
pub enum KeyDerivationAlgorithm { None, PBKDF2(KeyDerivationMetadata), }
Expand description
The key derivation algorithm that will be used.
Examples
use tindercrypt::metadata::{KeyDerivationMetadata, KeyDerivationAlgorithm}; // Create a PBKDF2 key derivation algorithm. let key_meta = KeyDerivationMetadata::generate(); let key_algo_pbkdf2 = KeyDerivationAlgorithm::PBKDF2(key_meta); // Create a no-op key derivation algorithm. let key_algo_none = KeyDerivationAlgorithm::None;
Variants
No key derivation.
PBKDF2(KeyDerivationMetadata)
Derive a key using the PBKDF2 algorithm.
Implementations
Create a key derivation algorithm from the respective protobuf-generated metadata.
This method may return an error, if the protobuf-generated metadata have invalid fields.
Convert a key derivation algorithm to the respective protobuf-generated metadata.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for KeyDerivationAlgorithm
impl Send for KeyDerivationAlgorithm
impl Sync for KeyDerivationAlgorithm
impl Unpin for KeyDerivationAlgorithm
impl UnwindSafe for KeyDerivationAlgorithm
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V