fix: set correct size for MLKEM ciphertext
This commit is contained in:
@@ -83,7 +83,7 @@ pub fn mlkem_keygen() -> (MLKEMPrivKey, MLKEMPubKey) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn mlkem_encap(pk: &MLKEMPubKey) -> (MLKEMCiphertext, MLKEMSharedKey) {
|
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 ss = MLKEMSharedKey(SharedPtr::new(32).unwrap());
|
||||||
|
|
||||||
let mut agent = MLKEMAGENT.lock().unwrap();
|
let mut agent = MLKEMAGENT.lock().unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user