Skip to content

Commit 832eba2

Browse files
committed
Fix bcrypt CCrypto::GenerateHMAC
Function was totally broken and obviously has never been used!
1 parent 4debdf6 commit 832eba2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/crypto_bcrypt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ void CCrypto::GenerateHMAC( const uint8 *pubData, uint32 cubData, const uint8 *p
323323
AssertFatal(NT_SUCCESS(status));
324324
status = BCryptHashData(hHash, (PUCHAR)pubData, (ULONG)cubData, 0);
325325
AssertFatal(NT_SUCCESS(status));
326-
status = BCryptFinishHash(hHash, *pOutputDigest, sizeof(SHA256Digest_t), 0);
326+
status = BCryptFinishHash(hHash, *pOutputDigest, sizeof(SHADigest_t), 0);
327327
AssertFatal(NT_SUCCESS(status));
328328
status = BCryptDestroyHash(hHash);
329329
AssertFatal(NT_SUCCESS(status));

0 commit comments

Comments
 (0)