Function cipher_with_secrets

Source
pub fn cipher_with_secrets(
    ec_secret_key: &X25519Secret,
    ec_public_key: &X25519Public,
    pq_secret_key: &MlKemSecret,
    pq_ciphertext: &MlKemCiphertext,
    salt: &[u8],
) -> XChaCha20Poly1305
Expand description

Create a cipher instance using secret keys and encrypted material.

Used during decryption to recreate the same cipher that was used for encryption by deriving the shared secret from the recipient’s secret keys and the sender’s ephemeral material.