Skip to content

Commit fa9914d

Browse files
author
Nicolas Pernoud
committed
fix: formatting
Signed-off-by: Nicolas Pernoud <nicolas.pernoud@stormshield.eu>
1 parent cc9ac12 commit fa9914d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tss-esapi/examples/symmetric_file_encrypt_decrypt.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
use core::str;
2-
use std::fs;
32
use std::convert::TryFrom;
3+
use std::fs;
44
use tss_esapi::{
55
attributes::ObjectAttributesBuilder,
66
interface_types::{
7-
algorithm::{HashingAlgorithm, PublicAlgorithm, SymmetricMode}, reserved_handles::Hierarchy,
7+
algorithm::{HashingAlgorithm, PublicAlgorithm, SymmetricMode},
8+
reserved_handles::Hierarchy,
89
},
910
structures::{
1011
CreatePrimaryKeyResult, Digest, InitialValue, MaxBuffer, PublicBuilder,
@@ -71,7 +72,8 @@ fn main() {
7172
// be reloaded for future use.
7273

7374
// We load the data from a file system file, it can be somewhat large (like a certificate), larger than MaxBuffer::MAX_SIZE
74-
let initial_data = fs::read("tss-esapi/examples/symmetric_file_encrypt_decrypt_example.txt").expect("could not open data file");
75+
let initial_data = fs::read("tss-esapi/examples/symmetric_file_encrypt_decrypt_example.txt")
76+
.expect("could not open data file");
7577

7678
// We create an initialisation vector, since it is needed for decryption, it should be persisted in a real world use case
7779
let iv = context

0 commit comments

Comments
 (0)