Realm

oa::crypto::pqc::device::mlkem_encapsulate

Encapsulate to a public U8 key. Canonicality is checked on device. Errors Rejects key dtype/owner/extent, capture, entropy, or execution errors.

FnRust public API

Function Documentation

pub fn mlkem_encapsulate( public_key: &Matrix, parameters: MlKemParameters ) -> Result<DeviceEncapsulation>
Encapsulate to a public U8 key. Canonicality is checked on device. Errors Rejects key dtype/owner/extent, capture, entropy, or execution errors.