File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
crates/bitwarden-crypto/examples Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments