Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6d9bca7d
Commit
6d9bca7d
authored
Nov 25, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh/tests: Use a 40-bit session key instead of 56-bit.
parent
87e7c72f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
rsaenh.c
dlls/rsaenh/tests/rsaenh.c
+3
-3
No files found.
dlls/rsaenh/tests/rsaenh.c
View file @
6d9bca7d
...
...
@@ -1046,13 +1046,13 @@ static void test_mac(void) {
BOOL
result
;
DWORD
dwLen
;
BYTE
abData
[
256
],
abEnc
[
264
];
static
const
BYTE
mac
[
8
]
=
{
0x0d
,
0x3e
,
0x15
,
0x6b
,
0x85
,
0x63
,
0x5c
,
0x11
};
static
const
BYTE
mac
_40
[
8
]
=
{
0xb7
,
0xa2
,
0x46
,
0xe9
,
0x11
,
0x31
,
0xe0
,
0xad
};
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
abData
)
/
sizeof
(
BYTE
);
i
++
)
abData
[
i
]
=
(
BYTE
)
i
;
for
(
i
=
0
;
i
<
sizeof
(
abData
)
/
sizeof
(
BYTE
);
i
++
)
abEnc
[
i
]
=
(
BYTE
)
i
;
if
(
!
derive_key
(
CALG_RC2
,
&
hKey
,
56
))
return
;
if
(
!
derive_key
(
CALG_RC2
,
&
hKey
,
40
))
return
;
dwLen
=
256
;
result
=
CryptEncrypt
(
hKey
,
0
,
TRUE
,
0
,
abEnc
,
&
dwLen
,
264
);
...
...
@@ -1069,7 +1069,7 @@ static void test_mac(void) {
result
=
CryptGetHashParam
(
hHash
,
HP_HASHVAL
,
abData
,
&
dwLen
,
0
);
ok
(
result
&&
dwLen
==
8
,
"%08x, dwLen: %d
\n
"
,
GetLastError
(),
dwLen
);
ok
(
!
memcmp
(
abData
,
mac
,
sizeof
(
mac
)),
"MAC failed!
\n
"
);
ok
(
!
memcmp
(
abData
,
mac
_40
,
sizeof
(
mac_40
)),
"MAC failed!
\n
"
);
result
=
CryptDestroyHash
(
hHash
);
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
...
...
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