Skip to content

Commit f7f4e84

Browse files
committed
Fix SHA512 truncated forms
The truncated forms of SHA512 were being included even if SHA512 was not defined. This led to build issues when there was no SHA512.
1 parent bfd3f7a commit f7f4e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6411,7 +6411,6 @@ CK_RV C_GenerateKey(CK_SESSION_HANDLE hSession,
64116411
case CKP_PKCS5_PBKD2_HMAC_SHA512:
64126412
hashType = WC_SHA512;
64136413
break;
6414-
#endif
64156414
#ifndef WOLFSSL_NOSHA512_224
64166415
case CKP_PKCS5_PBKD2_HMAC_SHA512_224:
64176416
hashType = WC_SHA512_224;
@@ -6421,6 +6420,7 @@ CK_RV C_GenerateKey(CK_SESSION_HANDLE hSession,
64216420
case CKP_PKCS5_PBKD2_HMAC_SHA512_256:
64226421
hashType = WC_SHA512_256;
64236422
break;
6423+
#endif
64246424
#endif
64256425
default:
64266426
return CKR_MECHANISM_PARAM_INVALID;

0 commit comments

Comments
 (0)