Skip to content

Commit 8c8568b

Browse files
committed
Fix build
1 parent 18ff1de commit 8c8568b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/bitwarden-crypto/examples/seal_struct.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn main() {
6363

6464
// Unseal the item again, using the content-encryption-key stored in the context.
6565
let my_item: MyItem = sealed_item
66-
.unseal(ExampleSymmetricKey::ItemKey, &mut ctx)
66+
.unseal(cek, &mut ctx)
6767
.expect("Unsealing should work");
6868
assert!(matches!(my_item, MyItem::MyItemV1(item) if item.a == 42 && item.b == "Hello, World!"));
6969
}
@@ -98,11 +98,15 @@ key_ids! {
9898
#[asymmetric]
9999
pub enum ExampleAsymmetricKey {
100100
Key(u8),
101+
#[local]
102+
Local(LocalId),
101103
}
102104

103105
#[signing]
104106
pub enum ExampleSigningKey {
105107
Key(u8),
108+
#[local]
109+
Local(LocalId),
106110
}
107111
pub ExampleIds => ExampleSymmetricKey, ExampleAsymmetricKey, ExampleSigningKey;
108112
}

0 commit comments

Comments
 (0)