Support Forum G3D Web Page |
Cryptography and hashing helper functions. More...
Static Public Member Functions | |
static uint32 | crc32 (const void *bytes, size_t numBytes) |
Computes the CRC32 value of a byte array. More... | |
static MD5Hash | md5 (const void *bytes, size_t numBytes) |
Computes the MD5 hash (message digest) of a byte stream, as defined by http://www.ietf.org/rfc/rfc1321.txt. More... | |
static int | numSmallPrimes () |
Returns 1 + the largest value that can be passed to smallPrime. More... | |
static int | smallPrime (int n) |
Returns the nth prime less than 2000 in constant time. More... | |
Cryptography and hashing helper functions.
|
static |
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/
|
static |
Computes the MD5 hash (message digest) of a byte stream, as defined by http://www.ietf.org/rfc/rfc1321.txt.
|
static |
Returns 1 + the largest value that can be passed to smallPrime.
|
static |
Returns the nth prime less than 2000 in constant time.
The first prime has index 0 and is the number 2.