33 unsigned char digest[16];
40 #define ctxcmp( a, b ) memcmp( a, b, FIELD_OFFSET( MD5_CTX, in ) ) 44 static unsigned char message[] =
45 "In our Life there's If" 46 "In our beliefs there's Lie" 47 "In our business there is Sin" 48 "In our bodies, there is Die";
57 { 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476 }
63 { 0x068cb64d, 0xb7a05790, 0x426979ee, 0xed67e221 }
69 { 0x2f7afe58, 0xcc3e9315, 0x709c465c, 0xbf6414c8 }
73 { 0x43, 0x03, 0xdd, 0x8c, 0x60, 0xd9, 0x3a, 0x22,
74 0x0b, 0x28, 0xd0, 0xb2, 0x65, 0x93, 0xd0, 0x36 };
82 if (!pMD5Init || !pMD5Update || !pMD5Final)
84 win_skip(
"Needed functions are not available\n");
90 ok( !
ctxcmp( &
ctx, &ctx_initialized ),
"invalid initialization\n" );
93 ok( !
ctxcmp( &
ctx, &ctx_update1 ),
"update doesn't work correctly\n" );
96 ok( !
ctxcmp( &
ctx, &ctx_update2 ),
"update doesn't work correctly\n" );
99 ok(
ctxcmp( &
ctx, &ctx_initialized ),
"context has changed\n" );
static const unsigned char const int len
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
GLenum GLuint GLenum GLsizei const GLchar * message
static const unsigned char * src
struct tagMD5_CTX MD5_CTX
GLenum GLuint GLenum GLsizei const GLchar * buf
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
static VOID(WINAPI *pMD5Init)(MD5_CTX *ctx)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define expect(expected, got)
static void test_md5_ctx(void)
#define GetProcAddress(x, y)