mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-27 22:13:12 -08:00
add eqality test for the shk in the DummyKem
This commit is contained in:
@@ -122,6 +122,8 @@
|
|||||||
//! #
|
//! #
|
||||||
//! # let mut alice_shk: Secret<{ MyKem::SHK_LEN }> = Secret::zero();
|
//! # let mut alice_shk: Secret<{ MyKem::SHK_LEN }> = Secret::zero();
|
||||||
//! # MyKem::decaps(alice_shk.secret_mut(), alice_sk.secret_mut(), &mut bob_ct)?;
|
//! # MyKem::decaps(alice_shk.secret_mut(), alice_sk.secret_mut(), &mut bob_ct)?;
|
||||||
|
//! #
|
||||||
|
//! # assert_eq!(alice_shk.secret(), bob_shk.secret());
|
||||||
//! # Ok(())
|
//! # Ok(())
|
||||||
//! # }
|
//! # }
|
||||||
//!```
|
//!```
|
||||||
|
|||||||
Reference in New Issue
Block a user