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
9c641c38
Commit
9c641c38
authored
Nov 22, 2019
by
Zhang Shuai
Committed by
Alexandre Julliard
Nov 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dssenh/tests: Add keylength tests for enhanced and schannel providers.
Signed-off-by:
Zhang Shuai
<
wxsxsdz@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4aee9ba5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dssenh.c
dlls/dssenh/tests/dssenh.c
+5
-1
No files found.
dlls/dssenh/tests/dssenh.c
View file @
9c641c38
...
...
@@ -261,7 +261,7 @@ static const struct keylength_test dssDH_keylength[] = {
};
static
const
struct
keylength_test
dssENH_keylength
[]
=
{
/* min 512 max 1024 (AT_KEYEXCHANGE max 4096), increment by 64*/
/* min 512 max 1024 (AT_KEYEXCHANGE
, CALG_DH_EPHEM, CALG_DH_SF
max 4096), increment by 64*/
{
AT_KEYEXCHANGE
,
448
<<
16
,
FALSE
,
NTE_BAD_FLAGS
},
{
AT_KEYEXCHANGE
,
512
<<
16
,
TRUE
},
{
AT_KEYEXCHANGE
,
513
<<
16
,
FALSE
,
NTE_FAIL
,
FALSE
,
NTE_BAD_FLAGS
},
/* WinNT4 and Win2k */
...
...
@@ -285,12 +285,16 @@ static const struct keylength_test dssENH_keylength[] = {
{
CALG_DH_EPHEM
,
768
<<
16
,
TRUE
},
{
CALG_DH_EPHEM
,
1024
<<
16
,
TRUE
},
{
CALG_DH_EPHEM
,
1040
<<
16
,
FALSE
,
NTE_BAD_FLAGS
},
{
CALG_DH_EPHEM
,
1088
<<
16
,
TRUE
},
{
CALG_DH_EPHEM
,
4160
<<
16
,
FALSE
,
NTE_BAD_FLAGS
},
{
CALG_DH_SF
,
448
<<
16
,
FALSE
,
NTE_BAD_FLAGS
},
{
CALG_DH_SF
,
512
<<
16
,
TRUE
},
{
CALG_DH_SF
,
513
<<
16
,
FALSE
,
NTE_FAIL
,
FALSE
,
NTE_BAD_FLAGS
},
/* WinNT4 and Win2k */
{
CALG_DH_SF
,
768
<<
16
,
TRUE
},
{
CALG_DH_SF
,
1024
<<
16
,
TRUE
},
{
CALG_DH_SF
,
1032
<<
16
,
FALSE
,
NTE_BAD_FLAGS
},
{
CALG_DH_SF
,
1088
<<
16
,
TRUE
},
{
CALG_DH_SF
,
4160
<<
16
,
FALSE
,
NTE_BAD_FLAGS
},
{
CALG_DSS_SIGN
,
448
<<
16
,
FALSE
,
NTE_BAD_FLAGS
},
{
CALG_DSS_SIGN
,
512
<<
16
,
TRUE
},
{
CALG_DSS_SIGN
,
513
<<
16
,
FALSE
,
NTE_FAIL
,
FALSE
,
NTE_BAD_FLAGS
,
STATUS_INVALID_PARAMETER
},
/* WinNT4 and Win2k */
...
...
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