bitwarden_crypto::keys::shareable_key

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.