We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 82718eb + 7605e41 commit b80416bCopy full SHA for b80416b
src/providers/pkcs11_provider/utils.rs
@@ -620,11 +620,11 @@ fn key_pair_usage_flags_to_pkcs11_attributes(
620
}
621
622
if usage_flags.export {
623
- priv_template.push(CK_ATTRIBUTE::new(CKA_EXTRACTABLE).with_bool(&CK_FALSE));
624
- priv_template.push(CK_ATTRIBUTE::new(CKA_SENSITIVE).with_bool(&CK_TRUE));
625
- } else {
626
priv_template.push(CK_ATTRIBUTE::new(CKA_EXTRACTABLE).with_bool(&CK_TRUE));
627
priv_template.push(CK_ATTRIBUTE::new(CKA_SENSITIVE).with_bool(&CK_FALSE));
+ } else {
+ priv_template.push(CK_ATTRIBUTE::new(CKA_EXTRACTABLE).with_bool(&CK_FALSE));
+ priv_template.push(CK_ATTRIBUTE::new(CKA_SENSITIVE).with_bool(&CK_TRUE));
628
629
630
if usage_flags.copy {
0 commit comments