Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c3a1e873
Commit
c3a1e873
authored
May 21, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
May 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Implement and test SystemFunction011.
parent
500384b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
advapi32.spec
dlls/advapi32/advapi32.spec
+1
-1
crypt_md4.c
dlls/advapi32/crypt_md4.c
+1
-0
crypt_md4.c
dlls/advapi32/tests/crypt_md4.c
+13
-7
No files found.
dlls/advapi32/advapi32.spec
View file @
c3a1e873
...
...
@@ -605,7 +605,7 @@
@ stdcall SystemFunction008(ptr ptr ptr)
@ stdcall SystemFunction009(ptr ptr ptr)
@ stdcall SystemFunction010(ptr ptr ptr)
@ st
ub SystemFunction011
@ st
dcall SystemFunction011(ptr ptr ptr) SystemFunction010
@ stdcall SystemFunction012(ptr ptr ptr)
@ stdcall SystemFunction013(ptr ptr ptr)
@ stdcall SystemFunction014(ptr ptr ptr) SystemFunction012
...
...
dlls/advapi32/crypt_md4.c
View file @
c3a1e873
...
...
@@ -299,6 +299,7 @@ NTSTATUS WINAPI SystemFunction007(PUNICODE_STRING string, LPBYTE hash)
/******************************************************************************
* SystemFunction010 [ADVAPI32.@]
* SystemFunction011 [ADVAPI32.@]
*
* MD4 hashes 16 bytes of data
*
...
...
dlls/advapi32/tests/crypt_md4.c
View file @
c3a1e873
...
...
@@ -40,13 +40,14 @@ typedef VOID (WINAPI *fnMD4Init)( MD4_CTX *ctx );
typedef
VOID
(
WINAPI
*
fnMD4Update
)(
MD4_CTX
*
ctx
,
const
unsigned
char
*
src
,
const
int
len
);
typedef
VOID
(
WINAPI
*
fnMD4Final
)(
MD4_CTX
*
ctx
);
typedef
int
(
WINAPI
*
fnSystemFunction007
)(
PUNICODE_STRING
,
LPBYTE
);
typedef
int
(
WINAPI
*
fnSystemFunction010
)(
LPVOID
,
const
LPBYTE
,
LPBYTE
);
typedef
int
(
WINAPI
*
md4hashfunc
)(
LPVOID
,
const
LPBYTE
,
LPBYTE
);
fnMD4Init
pMD4Init
;
fnMD4Update
pMD4Update
;
fnMD4Final
pMD4Final
;
fnSystemFunction007
pSystemFunction007
;
fnSystemFunction010
pSystemFunction010
;
md4hashfunc
pSystemFunction010
;
md4hashfunc
pSystemFunction011
;
#define ctxcmp( a, b ) memcmp( (char*)a, (char*)b, FIELD_OFFSET( MD4_CTX, in ) )
...
...
@@ -126,7 +127,7 @@ static void test_SystemFunction007(void)
ok
(
!
memcmp
(
output
,
expected
,
sizeof
expected
),
"response wrong
\n
"
);
}
static
void
test_
SystemFunction010
(
void
)
static
void
test_
md4hashfunc
(
md4hashfunc
func
)
{
unsigned
char
expected
[
0x10
]
=
{
0x48
,
0x7c
,
0x3f
,
0x5e
,
0x2b
,
0x0d
,
0x6a
,
0x79
,
...
...
@@ -134,9 +135,12 @@ static void test_SystemFunction010(void)
unsigned
char
in
[
0x10
],
output
[
0x10
];
int
r
;
if
(
!
func
)
return
;
memset
(
in
,
0
,
sizeof
in
);
memset
(
output
,
0
,
sizeof
output
);
r
=
pSystemFunction010
(
0
,
in
,
output
);
r
=
func
(
0
,
in
,
output
);
ok
(
r
==
STATUS_SUCCESS
,
"wrong error code
\n
"
);
ok
(
!
memcmp
(
expected
,
output
,
sizeof
output
),
"output wrong
\n
"
);
}
...
...
@@ -158,9 +162,11 @@ START_TEST(crypt_md4)
if
(
pSystemFunction007
)
test_SystemFunction007
();
pSystemFunction010
=
(
fnSystemFunction010
)
GetProcAddress
(
module
,
"SystemFunction010"
);
if
(
pSystemFunction010
)
test_SystemFunction010
();
pSystemFunction010
=
(
md4hashfunc
)
GetProcAddress
(
module
,
"SystemFunction010"
);
pSystemFunction011
=
(
md4hashfunc
)
GetProcAddress
(
module
,
"SystemFunction011"
);
test_md4hashfunc
(
pSystemFunction010
);
test_md4hashfunc
(
pSystemFunction011
);
FreeLibrary
(
module
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment