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
5da0debb
Commit
5da0debb
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
6a8d623a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
rsaenh.c
dlls/rsaenh/tests/rsaenh.c
+5
-5
No files found.
dlls/rsaenh/tests/rsaenh.c
View file @
5da0debb
...
...
@@ -736,9 +736,9 @@ static void test_aes(int keylen)
static
void
test_rc2
(
void
)
{
static
const
BYTE
rc2
encrypted
[
16
]
=
{
0x
02
,
0x34
,
0x7d
,
0xf6
,
0x1d
,
0xc5
,
0x9b
,
0x8b
,
0x
2e
,
0x0d
,
0x63
,
0x80
,
0x72
,
0xc1
,
0xc2
,
0xb1
};
static
const
BYTE
rc2
_40_encrypted
[
16
]
=
{
0x
c0
,
0x9a
,
0xe4
,
0x2f
,
0x0a
,
0x47
,
0x67
,
0x11
,
0x
fb
,
0x18
,
0x87
,
0xce
,
0x0c
,
0x75
,
0x07
,
0xb1
};
static
const
BYTE
rc2_128_encrypted
[]
=
{
0x82
,
0x81
,
0xf7
,
0xff
,
0xdd
,
0xd7
,
0x88
,
0x8c
,
0x2a
,
0x2a
,
0xc0
,
0xce
,
0x4c
,
0x89
,
0xb6
,
0x66
};
...
...
@@ -766,7 +766,7 @@ static void test_rc2(void)
result
=
CryptGetHashParam
(
hHash
,
HP_HASHVAL
,
pbHashValue
,
&
dwLen
,
0
);
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
result
=
CryptDeriveKey
(
hProv
,
CALG_RC2
,
hHash
,
56
<<
16
,
&
hKey
);
result
=
CryptDeriveKey
(
hProv
,
CALG_RC2
,
hHash
,
40
<<
16
,
&
hKey
);
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
dwLen
=
sizeof
(
DWORD
);
...
...
@@ -811,7 +811,7 @@ static void test_rc2(void)
result
=
CryptEncrypt
(
hKey
,
0
,
TRUE
,
0
,
pbData
,
&
dwDataLen
,
24
);
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
ok
(
!
memcmp
(
pbData
,
rc2
encrypted
,
8
),
"RC2 encryption failed!
\n
"
);
ok
(
!
memcmp
(
pbData
,
rc2
_40_encrypted
,
16
),
"RC2 encryption failed!
\n
"
);
result
=
CryptGetKeyParam
(
hKey
,
KP_IV
,
NULL
,
&
dwLen
,
0
);
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