Realm

oa::crypto::pqc::device::mlkem_import_key

Import FIPS 203 decapsulation-key bytes. The embedded encapsulation key supplies the retained public value; the secret input range is locked best-effort and erased before return. Importing does not prove that the decapsulation key is well-formed. Errors Rejects extent mismatches, capture, or submission errors.

FnRust public API

Function Documentation

pub fn mlkem_import_key( engine: &Engine, parameters: MlKemParameters, decapsulation_key: &mut [u8] ) -> Result<DeviceMlKemKey>
Import FIPS 203 decapsulation-key bytes. The embedded encapsulation key supplies the retained public value; the secret input range is locked best-effort and erased before return. Importing does not prove that the decapsulation key is well-formed. Errors Rejects extent mismatches, capture, or submission errors.