Skip to content

Commit

Permalink
small fix in imports in the examples folder. encrypt has some formatt…
Browse files Browse the repository at this point in the history
…ing problems
  • Loading branch information
Adam Khayam authored and Adam Khayam committed Apr 9, 2024
1 parent 59beb8d commit b28568a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/encrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use cosmian_cover_crypt::{
test_utils::policy,
MasterPublicKey, MasterSecretKey,
};
use cosmian_crypto_core::bytes_ser_de::Serializable;
use cosmian_crypto_core::Aes256Gcm;

/// Generates a new USK and encrypted header and prints them.
Expand All @@ -13,8 +14,7 @@ fn generate_new(
_msk: &mut MasterSecretKey,
mpk: &MasterPublicKey,
) {
let access_policy =
"Department::FIN && Security Level::Top Secret";
let access_policy = "Department::FIN && Security Level::Top Secret";

let (_, _header) =
EncryptedHeader::<Aes256Gcm>::generate(cc, policy, mpk, access_policy, None, None)
Expand Down

0 comments on commit b28568a

Please sign in to comment.