17#define A_SHA_DIGEST_LEN 20
27#define MD5_DIGEST_LEN 16
37#define MD4_DIGEST_LEN 16
40#define RSA32API __stdcall
109 0xEC, 0x05, 0x43, 0xE7, 0xDE, 0x8A, 0xEE, 0xFF,
110 0xAD, 0x72, 0x2B, 0x9D, 0x55, 0x4F, 0xCA, 0x6A,
111 0x8D, 0x81, 0xF1, 0xC7
116 0x3D, 0xE8, 0x23, 0x8B, 0x9D, 0xE0, 0xCE, 0x48,
117 0xB1, 0x1B, 0xDD, 0xD9, 0xC6, 0x86, 0xB2, 0xDE
120 0xE0, 0xE8, 0x50, 0x8A, 0x4D, 0x11, 0x02, 0xA6,
121 0x6A, 0xF0, 0xA7, 0xAB, 0xD8, 0xC4, 0x40, 0xED
138 if (!pfnA_SHAInit || !pfnA_SHAUpdate || !pfnA_SHAFinal)
140 skip(
"advapi32.dll!A_SHA*** not found\n");
193 if (!pfnMD5Init || !pfnMD5Update || !pfnMD5Final)
195 skip(
"advapi32.dll!MD5*** not found\n");
248 if (!pfnMD4Init || !pfnMD4Update || !pfnMD4Final)
250 skip(
"advapi32.dll!MD4*** not found\n");
296 skip(
"Module advapi32 not found\n");
static void Test_SHA1(void)
static ULONG g_aulMD5Or4StateInit[]
VOID RSA32API FN_A_SHAInit(_Out_ PA_SHA_CTX Context)
static HMODULE g_hAdvapi32
VOID RSA32API FN_A_SHAFinal(_Inout_ PA_SHA_CTX Context, _Out_ PUCHAR Result)
VOID RSA32API FN_MD5Update(_Inout_ PMD5_CTX Context, _In_reads_(BufferSize) PUCHAR Buffer, _In_ ULONG BufferSize)
VOID RSA32API FN_MD5Init(_Out_ PMD5_CTX Context)
static void Test_MD4(void)
static UCHAR g_aucSHA1Result[A_SHA_DIGEST_LEN]
VOID RSA32API FN_MD4Final(_Inout_ PMD4_CTX Context)
static UCHAR g_aucMD4Result[MD4_DIGEST_LEN]
static void Test_MD5(void)
VOID RSA32API FN_MD5Final(_Inout_ PMD5_CTX Context)
static ANSI_STRING g_TestString
VOID RSA32API FN_A_SHAUpdate(_Inout_ PA_SHA_CTX Context, _In_reads_(BufferSize) PUCHAR Buffer, _In_ ULONG BufferSize)
VOID RSA32API FN_MD4Update(_Inout_ PMD4_CTX Context, _In_reads_(BufferSize) PUCHAR Buffer, _In_ ULONG BufferSize)
struct _A_SHA_CTX A_SHA_CTX
VOID RSA32API FN_MD4Init(_Out_ PMD4_CTX Context)
struct _MD4_CTX * PMD4_CTX
static UCHAR g_aucMD5Result[MD5_DIGEST_LEN]
static ULONG g_ctxSHA1StateInit[]
struct _MD5_CTX * PMD5_CTX
struct _A_SHA_CTX * PA_SHA_CTX
#define ok_eq_ulong(value, expected)
#define ok_eq_size(value, expected)
#define GetProcAddress(x, y)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
static int Hash(const char *)
#define RtlCompareMemory(s1, s2, l)
#define RTL_FIELD_SIZE(type, field)
#define DECLSPEC_ALIGN(x)
#define RTL_CONSTANT_STRING(s)
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
_Must_inspect_result_ NTSYSAPI SIZE_T NTAPI RtlCompareMemoryUlong(_In_reads_bytes_(Length) PVOID Source, _In_ SIZE_T Length, _In_ ULONG Pattern)