Skip to content

Commit dbdeb08

Browse files
committed
Oops forgot to update KAT and example
1 parent f582c84 commit dbdeb08

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

examples/agility.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -702,10 +702,7 @@ fn main() {
702702
let psk_id = b"preshared key attempt #5, take 2. action";
703703
let psk_bundle = {
704704
csprng.fill_bytes(&mut psk_bytes);
705-
AgilePskBundle(PskBundle {
706-
psk: &psk_bytes,
707-
psk_id,
708-
})
705+
AgilePskBundle(PskBundle::new(&psk_bytes, psk_id).unwrap())
709706
};
710707

711708
// Make two agreeing OpModes (AuthPsk is the most complicated, so we're just using

src/kat_tests.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,7 @@ fn make_op_mode_r<'a, Kem: KemTrait>(
222222
psk_id: Option<&'a [u8]>,
223223
) -> OpModeR<'a, Kem> {
224224
// Deserialize the optional bundle
225-
let bundle = psk.map(|bytes| PskBundle {
226-
psk: bytes,
227-
psk_id: psk_id.unwrap(),
228-
});
225+
let bundle = psk.map(|bytes| PskBundle::new(bytes, psk_id.unwrap()).unwrap());
229226

230227
// These better be set if the mode ID calls for them
231228
match mode_id {

0 commit comments

Comments
 (0)