bitwarden_crypto::keys::utils

Function stretch_key

Source
pub(super) fn stretch_key(
    key: &Pin<Box<GenericArray<u8, U32>>>,
) -> Result<Aes256CbcHmacKey, CryptoError>
Expand description

Stretch the given key using HKDF. This can be either a kdf-derived key (PIN/Master password) or a random key from key connector