bitwarden_crypto

Function derive_shareable_key

Source
pub fn derive_shareable_key(
    secret: Zeroizing<[u8; 16]>,
    name: &str,
    info: Option<&str>,
) -> SymmetricCryptoKey
Expand description

Derive a shareable key using hkdf from secret and name.

A specialized variant of this function was called CryptoService.makeSendKey in the Bitwarden clients repository.