Skip to main content

crypto_kem_mlkem768_dec

Function crypto_kem_mlkem768_dec 

Source
pub fn crypto_kem_mlkem768_dec(
    shared_secret: &mut SharedSecret,
    ciphertext: &Ciphertext,
    secret_key: &SecretKey,
)
Expand description

Recovers the shared secret encapsulated in ciphertext with secret_key, writing it to shared_secret. A ciphertext not created for this key yields an unrelated pseudorandom secret instead of an error.

Compatible with libsodium’s crypto_kem_mlkem768_dec.