![]() |
TrinityCore
|
#include <Crypto.h>
Static Public Member Functions | |
| static uint32 | crc32 (const void *bytes, size_t numBytes) |
| static MD5Hash | md5 (const void *bytes, size_t numBytes) |
| static int | smallPrime (int n) |
| static int | numSmallPrimes () |
Cryptography and hashing helper functions
Computes the CRC32 value of a byte array. CRC32 is designed to be a hash function that produces different values for similar strings.
This implementation is compatible with PKZIP and GZIP.
Based on http://www.gamedev.net/reference/programming/features/crc32/
Here is the caller graph for this function:Computes the MD5 hash (message digest) of a byte stream, as defined by http://www.ietf.org/rfc/rfc1321.txt.
[Based] on implementation by L. Peter Deutsch, ghost@aladdin.com
Here is the call graph for this function:
|
static |
|
static |
Returns the nth prime less than 2000 in constant time. The first prime has index 0 and is the number 2.
Here is the call graph for this function:
1.8.8