Skip to content

Commit

Permalink
Fix report of AES key sizes (Fixes #36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwier committed Jan 23, 2023
1 parent 3089b6b commit 4f26f20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkcs11/token-sc-hsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2901,8 +2901,8 @@ static int sc_hsm_C_GetMechanismInfo(CK_MECHANISM_TYPE type, CK_MECHANISM_INFO_P
case CKM_AES_KEY_GEN:
case CKM_AES_CBC:
case CKM_AES_CMAC:
pInfo->ulMinKeySize = 128;
pInfo->ulMaxKeySize = 256;
pInfo->ulMinKeySize = 16;
pInfo->ulMaxKeySize = 32;
break;

#ifdef ENABLE_LIBCRYPTO
Expand Down

0 comments on commit 4f26f20

Please sign in to comment.