fix: use proper ipc id for decapsulate call

This commit is contained in:
2024-08-28 09:07:37 +02:00
parent 05eb75d932
commit d36eb9afcf

View File

@@ -101,7 +101,7 @@ pub fn mlkem_decap(ct: &MLKEMCiphertext, sk: &MLKEMPrivKey) -> MLKEMSharedKey {
let mut agent = MLKEMAGENT.lock().unwrap();
unsafe {
agent.perform_ipc_call(1, &[ss.0.get_offset(), ct.0.get_offset(), sk.0.get_offset()]);
agent.perform_ipc_call(2, &[ss.0.get_offset(), ct.0.get_offset(), sk.0.get_offset()]);
}
ss