Skip to content

Commit

Permalink
Support CKA_MODIFIABLE and CKA_COPYABLE for aes and wrap keys
Browse files Browse the repository at this point in the history
  • Loading branch information
qpernil committed Aug 28, 2023
1 parent 4928156 commit eb0034f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkcs11/util_pkcs11.c
Original file line number Diff line number Diff line change
Expand Up @@ -5046,6 +5046,7 @@ CK_RV parse_wrap_template(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount,
case CKA_VERIFY_RECOVER:
case CKA_DERIVE:
case CKA_COPYABLE:
case CKA_MODIFIABLE:
if ((rv = check_bool_attribute(pTemplate[i].pValue, false)) != CKR_OK) {
return rv;
}
Expand Down Expand Up @@ -5129,6 +5130,8 @@ CK_RV parse_aes_template(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount,
case CKA_DERIVE:
case CKA_SIGN:
case CKA_VERIFY:
case CKA_COPYABLE:
case CKA_MODIFIABLE:
if ((rv = check_bool_attribute(pTemplate[i].pValue, false)) != CKR_OK) {
DBG_ERR("Boolean false check failed for attribute 0x%lx",
pTemplate[i].type);
Expand Down

0 comments on commit eb0034f

Please sign in to comment.