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
7e456b8f
Commit
7e456b8f
authored
Jul 19, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Jul 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh/tests: Fix some Windows 8 tests.
parent
3a7b89e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
rsaenh.c
dlls/rsaenh/tests/rsaenh.c
+14
-6
No files found.
dlls/rsaenh/tests/rsaenh.c
View file @
7e456b8f
...
...
@@ -656,7 +656,8 @@ static void test_hashes(void)
ok
(
result
,
"CryptCreateHash failed 0x%08x
\n
"
,
GetLastError
());
/* Test that CryptHashData fails on this hash */
result
=
CryptHashData
(
hHash
,
pbData
,
sizeof
(
pbData
),
0
);
ok
(
!
result
&&
GetLastError
()
==
NTE_BAD_ALGID
,
"%08x
\n
"
,
GetLastError
());
ok
(
!
result
&&
(
GetLastError
()
==
NTE_BAD_ALGID
||
broken
(
GetLastError
()
==
ERROR_INVALID_HANDLE
))
/* Win 8 */
,
"%08x
\n
"
,
GetLastError
());
result
=
CryptSetHashParam
(
hHash
,
HP_HASHVAL
,
pbHashValue
,
0
);
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
len
=
(
DWORD
)
sizeof
(
abPlainPrivateKey
);
...
...
@@ -779,11 +780,18 @@ static void test_block_cipher_modes(void)
dwMode
=
CRYPT_MODE_OFB
;
result
=
CryptSetKeyParam
(
hKey
,
KP_MODE
,
(
BYTE
*
)
&
dwMode
,
0
);
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
dwLen
=
23
;
result
=
CryptEncrypt
(
hKey
,
0
,
TRUE
,
0
,
abData
,
&
dwLen
,
24
);
ok
(
!
result
&&
GetLastError
()
==
NTE_BAD_ALGID
,
"%08x
\n
"
,
GetLastError
());
if
(
!
result
&&
GetLastError
()
==
ERROR_INTERNAL_ERROR
)
{
ok
(
broken
(
1
),
"OFB mode not supported
\n
"
);
/* Windows 8 */
}
else
{
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
dwLen
=
23
;
result
=
CryptEncrypt
(
hKey
,
0
,
TRUE
,
0
,
abData
,
&
dwLen
,
24
);
ok
(
!
result
&&
GetLastError
()
==
NTE_BAD_ALGID
,
"%08x
\n
"
,
GetLastError
());
}
CryptDestroyKey
(
hKey
);
}
...
...
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