We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a27764a commit 75805b8Copy full SHA for 75805b8
benches/benches.rs
@@ -38,10 +38,7 @@ where
38
let mut psk_id = [0u8; 8];
39
csprng.fill_bytes(&mut psk);
40
csprng.fill_bytes(&mut psk_id);
41
- let psk_bundle = PskBundle {
42
- psk: &psk,
43
- psk_id: &psk_id,
44
- };
+ let psk_bundle = PskBundle::new(&psk, &psk_id).unwrap();
45
46
// Make a sender keypair for OpModeAuth and OpModeAuthPsk
47
let (sk_sender, pk_sender) = Kem::gen_keypair(&mut csprng);
0 commit comments