Skip to content

Commit 15bfba8

Browse files
committed
pkcs11: Support CKA_VALUE_LEN on HMAC keys
1 parent f17032b commit 15bfba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkcs11/util_pkcs11.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ static CK_RV get_attribute_secret_key(CK_ATTRIBUTE_TYPE type,
13711371
break;
13721372

13731373
case CKA_VALUE_LEN:
1374-
if (object->type == YH_WRAP_KEY || object->type == YH_SYMMETRIC_KEY) {
1374+
if (object->type == YH_WRAP_KEY || object->type == YH_SYMMETRIC_KEY || object->type == YH_HMAC_KEY) {
13751375
size_t key_length = 0;
13761376
yh_rc yrc = yh_get_key_bitlength(object->algorithm, &key_length);
13771377
if (yrc != YHR_SUCCESS) {

0 commit comments

Comments
 (0)