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
16c40d91
Commit
16c40d91
authored
Sep 10, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Reorder padding code to avoid unnecessary comparison.
parent
57dee443
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
rsaenh.c
dlls/rsaenh/rsaenh.c
+7
-7
No files found.
dlls/rsaenh/rsaenh.c
View file @
16c40d91
...
...
@@ -1907,16 +1907,16 @@ BOOL WINAPI RSAENH_CPEncrypt(HCRYPTPROV hProv, HCRYPTKEY hKey, HCRYPTHASH hHash,
*
pdwDataLen
=
dwEncryptedLen
;
return
TRUE
;
}
for
(
i
=*
pdwDataLen
;
i
<
dwEncryptedLen
&&
i
<
dwBufLen
;
i
++
)
pbData
[
i
]
=
dwEncryptedLen
-
*
pdwDataLen
;
*
pdwDataLen
=
dwEncryptedLen
;
if
(
*
pdwDataLen
>
dwBufLen
)
{
else
if
(
dwEncryptedLen
>
dwBufLen
)
{
*
pdwDataLen
=
dwEncryptedLen
;
SetLastError
(
ERROR_MORE_DATA
);
return
FALSE
;
}
/* Pad final block with length bytes */
for
(
i
=*
pdwDataLen
;
i
<
dwEncryptedLen
;
i
++
)
pbData
[
i
]
=
dwEncryptedLen
-
*
pdwDataLen
;
*
pdwDataLen
=
dwEncryptedLen
;
for
(
i
=
0
,
in
=
pbData
;
i
<*
pdwDataLen
;
i
+=
pCryptKey
->
dwBlockLen
,
in
+=
pCryptKey
->
dwBlockLen
)
{
switch
(
pCryptKey
->
dwMode
)
{
case
CRYPT_MODE_ECB
:
...
...
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