SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | F(x, y, z) (((x) & (y)) | ((~x) & (z))) |
#define | G(x, y, z) (((x) & (z)) | ((y) & (~z))) |
#define | H(x, y, z) ((x) ^ (y) ^ (z)) |
#define | I(x, y, z) ((y) ^ ((x) | (~z))) |
#define | ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) |
#define | FF(a, b, c, d, x, s, ac) |
#define | GG(a, b, c, d, x, s, ac) |
#define | HH(a, b, c, d, x, s, ac) |
#define | II(a, b, c, d, x, s, ac) |
#define | S11 7 |
#define | S12 12 |
#define | S13 17 |
#define | S14 22 |
#define | S21 5 |
#define | S22 9 |
#define | S23 14 |
#define | S24 20 |
#define | S31 4 |
#define | S32 11 |
#define | S33 16 |
#define | S34 23 |
#define | S41 6 |
#define | S42 10 |
#define | S43 15 |
#define | S44 21 |
Functions | |
static void | SDLTest_Md5Transform (MD5UINT4 *buf, const MD5UINT4 *in) |
void | SDLTest_Md5Init (SDLTest_Md5Context *mdContext) |
initialize the context More... | |
void | SDLTest_Md5Update (SDLTest_Md5Context *mdContext, unsigned char *inBuf, unsigned int inLen) |
update digest from variable length data More... | |
void | SDLTest_Md5Final (SDLTest_Md5Context *mdContext) |
complete digest computation More... | |
Variables | |
static unsigned char | MD5PADDING [64] |
Definition at line 80 of file SDL_test_md5.c.
#define S11 7 |
#define S12 12 |
#define S13 17 |
#define S14 22 |
#define S21 5 |
#define S22 9 |
#define S23 14 |
#define S24 20 |
#define S31 4 |
#define S32 11 |
#define S33 16 |
#define S34 23 |
#define S41 6 |
#define S42 10 |
#define S43 15 |
#define S44 21 |
void SDLTest_Md5Final | ( | SDLTest_Md5Context * | mdContext | ) |
complete digest computation
mdContext | pointer to context variable |
Note: The function terminates the message-digest computation and ends with the desired message digest in mdContext.digest[0..15]. Always call before using the digest[] variable.
Definition at line 180 of file SDL_test_md5.c.
References SDLTest_Md5Context::buf, SDLTest_Md5Context::digest, i, SDLTest_Md5Context::i, SDLTest_Md5Context::in, MD5PADDING, NULL, SDLTest_Md5Transform(), and SDLTest_Md5Update().
Referenced by SDLTest_GenerateExecKey().
void SDLTest_Md5Init | ( | SDLTest_Md5Context * | mdContext | ) |
initialize the context
mdContext | pointer to context variable |
Note: The function initializes the message-digest context mdContext. Call before each new use of the context - all fields are set to zero.
Definition at line 110 of file SDL_test_md5.c.
References SDLTest_Md5Context::buf, SDLTest_Md5Context::i, and NULL.
Referenced by SDLTest_GenerateExecKey().
void SDLTest_Md5Update | ( | SDLTest_Md5Context * | mdContext, |
unsigned char * | inBuf, | ||
unsigned int | inLen | ||
) |
update digest from variable length data
mdContext | pointer to context variable |
inBuf | pointer to data array/string |
inLen | length of data array/string |
Note: The function updates the message-digest context to account for the presence of each of the characters inBuf[0..inLen-1] in the message whose digest is being computed.
Definition at line 131 of file SDL_test_md5.c.
References SDLTest_Md5Context::buf, i, SDLTest_Md5Context::i, SDLTest_Md5Context::in, NULL, and SDLTest_Md5Transform().
Referenced by SDLTest_GenerateExecKey(), and SDLTest_Md5Final().
|
static |
Definition at line 61 of file SDL_test_md5.c.
Referenced by SDLTest_Md5Final().