Realm

oa::crypto::pqc::device::mlkem_decapsulate

Decapsulate a correct-size public ciphertext using a retained device key. Errors Rejects dtype/owner/extent, capture, or execution errors. Ciphertext content rejection produces an opaque replacement secret, never an error or flag.

FnRust public API

Function Documentation

pub fn mlkem_decapsulate( key: &DeviceMlKemKey, ciphertext: &Matrix ) -> Result<DeviceDecapsulation>
Decapsulate a correct-size public ciphertext using a retained device key. Errors Rejects dtype/owner/extent, capture, or execution errors. Ciphertext content rejection produces an opaque replacement secret, never an error or flag.