I use Crypto++ static library to define a function to calculate the value
of CRC32. But the calculated value of CRC32 is different from the expected
value.
The expected value is a609ef3c
But the actual value is 3cef09a6.
Platform: windows 10 1809
Compiler tool: visual studio 2017 Enterprise
Library version: 8.10
#include "crc.h"
string CRC32_Bytes(PBYTE pData, DWORD dwDataSize)
{
string value;
CRC32 crc32;
StringSource(pData, dwDataSize, true, new HashFilter(crc32, new
HexEncoder(new StringSink(value))));
return value;
}
--
You received this message because you are subscribed to "Crypto++ Users". More
information about Crypto++ and this group is available at
http://www.cryptopp.com and
http://groups.google.com/forum/#!forum/cryptopp-users.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.