Skip to content

Commit 0a02b5d

Browse files
Made source keys extractable
This is needed for allowing people to use them as the secondary key in one of the simple key derivation mechanisms that take two keys
1 parent 728b7ac commit 0a02b5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cryptoki/tests/basic.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,8 @@ fn derive_key_concatenation_two_keys() -> TestResult {
798798
Attribute::KeyType(KeyType::GENERIC_SECRET),
799799
Attribute::Value(key_value[..3].to_vec()),
800800
Attribute::Derive(true),
801+
Attribute::Sensitive(false),
802+
Attribute::Extractable(true),
801803
];
802804
let key2_template = [
803805
Attribute::Token(true),
@@ -806,6 +808,8 @@ fn derive_key_concatenation_two_keys() -> TestResult {
806808
Attribute::KeyType(KeyType::GENERIC_SECRET),
807809
Attribute::Value(key_value[3..].to_vec()),
808810
Attribute::Derive(true),
811+
Attribute::Sensitive(false),
812+
Attribute::Extractable(true),
809813
];
810814

811815
let key1 = session.create_object(&key1_template)?;

0 commit comments

Comments
 (0)