bitwarden_crypto::keys::utils

Function derive_kdf_key

Source
pub(super) fn derive_kdf_key(
    secret: &[u8],
    salt: &[u8],
    kdf: &Kdf,
) -> Result<SymmetricCryptoKey, CryptoError>
Expand description

Derive a generic key from a secret and salt using the provided KDF.