fix: set correct size for MLKEM ciphertext

This commit is contained in:
2024-10-10 16:47:13 +02:00
parent cbf0454517
commit 5c4067608c

View File

@@ -83,7 +83,7 @@ pub fn mlkem_keygen() -> (MLKEMPrivKey, MLKEMPubKey) {
}
pub fn mlkem_encap(pk: &MLKEMPubKey) -> (MLKEMCiphertext, MLKEMSharedKey) {
let ct = MLKEMCiphertext(SharedPtr::new(1184).unwrap());
let ct = MLKEMCiphertext(SharedPtr::new(1088).unwrap());
let ss = MLKEMSharedKey(SharedPtr::new(32).unwrap());
let mut agent = MLKEMAGENT.lock().unwrap();