Function authenticated_encrypt_key

Source
pub fn authenticated_encrypt_key<S, V>(
    key: &Key,
    signing_keys: &S,
    verifier: &V,
    recipients: &[impl ParticipantPublicKeys],
    salts: &Salts,
    csprng: &mut impl CryptoRngCore,
) -> Result<Vec<CredentialVault>, CryptError>
where S: Sign + VerifyingKeys<V>, V: Verifier,
Expand description

Encrypt a symmetric encryption key for multiple recipients using SIGMA-I-style authenticated encryption.

Creates individual [CredentialVault]s for each recipient, allowing them to decrypt the shared key while maintaining authentication.