24#define WIN32_NO_STATUS
36 unsigned char digest[16];
48#define ctxcmp( a, b ) memcmp( a, b, FIELD_OFFSET( MD4_CTX, in ) )
52 static unsigned char message[] =
53 "In our Life there's If"
54 "In our beliefs there's Lie"
55 "In our business there is Sin"
56 "In our bodies, there is Die";
63 { 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476 },
69 { 0x5e592ef7, 0xbdcb1567, 0x2b626d17, 0x7d1198bd },
75 { 0x05dcfd65, 0xb3711c0d, 0x9e3369c2, 0x903ead11 },
80 { 0x5f, 0xd3, 0x9b, 0x29, 0x47, 0x53, 0x47, 0xaf,
81 0xa5, 0xba, 0x0c, 0x05, 0xff, 0xc0, 0xc7, 0xda };
86 ok( !
ctxcmp( &
ctx, &ctx_initialized ),
"invalid initialization\n" );
89 ok( !
ctxcmp( &
ctx, &ctx_update1 ),
"update doesn't work correctly\n" );
92 ok( !
ctxcmp( &
ctx, &ctx_update2 ),
"update doesn't work correctly\n" );
95 ok(
ctxcmp( &
ctx, &ctx_initialized ),
"context has changed\n" );
105 BYTE expected[0x10] = { 0x24, 0x0a, 0xf0, 0x9d, 0x84, 0x1c, 0xda, 0xcf,
106 0x56, 0xeb, 0x6b, 0x96, 0x55, 0xec, 0xcf, 0x0a };
107 WCHAR szFoo[] = {
'f',
'o',
'o',0 };
118 str.MaximumLength =
str.Length;
120 memset(output, 0,
sizeof output);
121 r = pSystemFunction007(&
str, output);
130 0x48, 0x7c, 0x3f, 0x5e, 0x2b, 0x0d, 0x6a, 0x79,
131 0x32, 0x4e, 0xcd, 0xbe, 0x9c, 0x15, 0x16, 0x6f };
132 unsigned char in[0x10], output[0x10];
136 memset(output, 0,
sizeof output);
152 if (pMD4Init && pMD4Update && pMD4Final)
155 win_skip(
"MD4Init and/or MD4Update and/or MD4Final are not available\n");
158 if (pSystemFunction007)
161 win_skip(
"SystemFunction007 is not available\n");
167 win_skip(
"SystemFunction010 is not available\n");
173 win_skip(
"SystemFunction011 is not available\n");
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
static void test_md4_ctx(void)
static md4hashfunc pSystemFunction011
static void test_SystemFunction007(void)
int(WINAPI * md4hashfunc)(LPVOID, const LPBYTE, LPBYTE)
static const unsigned char const int len
static md4hashfunc pSystemFunction010
static void test_md4hashfunc(md4hashfunc func)
static const unsigned char * src
#define GetProcAddress(x, y)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLdouble GLdouble GLdouble r
GLenum GLuint GLenum GLsizei const GLchar * buf
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 STATUS_UNSUCCESSFUL