Skip to content

Commit

Permalink
fixup! Add marshalling to Private (TPM2B_PRIVATE)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandsimon committed Oct 19, 2023
1 parent 7190f3d commit ad16e07
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ use tss_esapi::structures::Private;
#[test]
fn marshall_unmarshall() {
crate::common::check_marshall_unmarshall(&Private::default());
crate::common::check_marshall_unmarshall_offset(&Private::default());
let private = Private::try_from([0xff; 100].to_vec()).unwrap();
crate::common::check_marshall_unmarshall(&private);
}

#[test]
fn marshall_unmarshall_offset() {
crate::common::check_marshall_unmarshall_offset(&Private::default());
let private = Private::try_from([0xff; 100].to_vec()).unwrap();
crate::common::check_marshall_unmarshall_offset(&private);
}

0 comments on commit ad16e07

Please sign in to comment.