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
e55dc350
Commit
e55dc350
authored
Jul 23, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Jul 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Change the default AES chaining mode to CBC.
parent
0f31d82c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
rsaenh.c
dlls/rsaenh/rsaenh.c
+1
-1
rsaenh.c
dlls/rsaenh/tests/rsaenh.c
+4
-6
No files found.
dlls/rsaenh/rsaenh.c
View file @
e55dc350
...
...
@@ -900,7 +900,7 @@ static HCRYPTKEY new_key(HCRYPTPROV hProv, ALG_ID aiAlgid, DWORD dwFlags, CRYPTK
case
CALG_AES_192
:
case
CALG_AES_256
:
pCryptKey
->
dwBlockLen
=
16
;
pCryptKey
->
dwMode
=
CRYPT_MODE_
ECB
;
pCryptKey
->
dwMode
=
CRYPT_MODE_
CBC
;
break
;
case
CALG_RSA_KEYX
:
...
...
dlls/rsaenh/tests/rsaenh.c
View file @
e55dc350
...
...
@@ -1140,7 +1140,9 @@ static void test_aes(int keylen)
result
=
CryptEncrypt
(
hKey
,
0
,
TRUE
,
0
,
pbData
,
&
dwLen
,
sizeof
(
pbData
));
ok
(
result
,
"Expected OK, got last error %d
\n
"
,
GetLastError
());
ok
(
dwLen
==
48
,
"Expected dwLen 48, got %d
\n
"
,
dwLen
);
todo_wine
if
(
i
==
0
)
todo_wine
ok
(
!
memcmp
(
aes_cbc_enc
[
i
],
pbData
,
dwLen
),
"Expected equal data sequences
\n
"
);
else
ok
(
!
memcmp
(
aes_cbc_enc
[
i
],
pbData
,
dwLen
),
"Expected equal data sequences
\n
"
);
result
=
CryptDecrypt
(
hKey
,
0
,
TRUE
,
0
,
pbData
,
&
dwLen
);
...
...
@@ -1161,7 +1163,6 @@ todo_wine
dwLen
=
sizeof
(
dwMode
);
result
=
CryptGetKeyParam
(
hKey
,
KP_MODE
,
(
BYTE
*
)
&
dwMode
,
&
dwLen
,
0
);
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
todo_wine
ok
(
dwMode
==
CRYPT_MODE_CBC
,
"Wrong default chaining
\n
"
);
dwLen
=
13
;
...
...
@@ -3529,12 +3530,9 @@ static void test_key_derivation(const char *prov)
memset
(
wine_broken
,
0
,
sizeof
(
wine_broken
));
wine_broken
[
8
].
mode
=
wine_broken
[
8
].
blen
=
1
;
wine_broken
[
9
].
mode
=
wine_broken
[
9
].
exp_data
=
1
;
wine_broken
[
10
].
mode
=
1
;
wine_broken
[
9
].
exp_data
=
1
;
wine_broken
[
20
]
=
wine_broken
[
32
]
=
wine_broken
[
44
]
=
wine_broken
[
8
];
wine_broken
[
21
]
=
wine_broken
[
33
]
=
wine_broken
[
45
]
=
wine_broken
[
9
];
wine_broken
[
22
]
=
wine_broken
[
23
]
=
wine_broken
[
34
]
=
wine_broken
[
35
]
=
wine_broken
[
10
];
wine_broken
[
46
]
=
wine_broken
[
47
]
=
wine_broken
[
11
]
=
wine_broken
[
10
];
for
(
i
=
0
;
i
<
sizeof
(
tests
)
/
sizeof
(
tests
[
0
]);
i
++
)
{
...
...
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