Skip to content

Commit d8d3e2d

Browse files
authored
Merge pull request #147 from LinuxJedi/SHA512-fix
Fix SHA512 truncated forms
2 parents bfd3f7a + f7f4e84 commit d8d3e2d

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)