Realm

oa::crypto::pqc::device::mlkem_shared_derive

Declassify public bytes derived from a device shared secret. The secret never leaves private storage; keyed SHAKE-256 output is the only result. info is public customization data absorbed after the secret; length must be a nonzero multiple of four within 4096 bytes. Errors Rejects dtype/owner/extent errors, capture, or execution failure.

FnRust public API

Function Documentation

pub fn mlkem_shared_derive( secret: &DeviceSharedSecret, info: &Matrix, length: usize ) -> Result<DeviceDerivation>
Declassify public bytes derived from a device shared secret. The secret never leaves private storage; keyed SHAKE-256 output is the only result. info is public customization data absorbed after the secret; length must be a nonzero multiple of four within 4096 bytes. Errors Rejects dtype/owner/extent errors, capture, or execution failure.