30 for (
int i = 0; i < 16; ++i) {
39 uint8 temp = value[0];
40 for (
int i = 0; i < 15; ++i) {
41 value[i] = value[i + 1];
50 for (
int i = 0; i < 16; ++i) {
51 value[i] = value[(i + n) & 15];
65 for (
int i = 0; i < 16; ++i) {
66 match = match && (other.
value[i] == value[i]);
72 return !(*
this == other);
81 for (
int i = 0; i < 4; ++i) {
105 static uint32 crc32(
const void* bytes,
size_t numBytes);
113 static MD5Hash md5(
const void* bytes,
size_t numBytes);
static int smallPrime(int n)
Definition: Crypto.cpp:19
uint8 value[16]
Definition: Crypto.h:25
static void memcpy(void *dst, const void *src, size_t numBytes)
Definition: System.cpp:643
static MD5Hash md5(const void *bytes, size_t numBytes)
Definition: Crypto_md5.cpp:65
static size_t hashCode(const MD5Hash &key)
Definition: Crypto.h:79
static int numSmallPrimes()
Definition: Crypto.cpp:62
MD5Hash()
Definition: Crypto.h:29
void serialize(class BinaryOutput &b) const
Definition: Crypto_md5.cpp:31
void rotateBytes(int n)
Definition: Crypto.h:47
void rotateBytes()
Definition: Crypto.h:38
bool operator!=(const MD5Hash &other) const
Definition: Crypto.h:71
uint8_t uint8
Definition: g3dmath.h:164
static uint32 crc32(const void *bytes, size_t numBytes)
Definition: Crypto.cpp:66
Definition: BinaryOutput.h:52
void deserialize(class BinaryInput &b)
Definition: Crypto_md5.cpp:26
uint32_t uint32
Definition: g3dmath.h:168
G3D::int16 x
Definition: Vector2int16.h:37
uint8 & operator[](int i)
Definition: Crypto.h:55
const uint8 & operator[](int i) const
Definition: Crypto.h:59
bool operator==(const MD5Hash &other) const
Definition: Crypto.h:63