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
4e3b2870
Commit
4e3b2870
authored
Nov 01, 2022
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Pass exact size to BCryptFinishHash().
parent
6705a710
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
implglue.c
dlls/rsaenh/implglue.c
+2
-2
implglue.h
dlls/rsaenh/implglue.h
+1
-1
rsaenh.c
dlls/rsaenh/rsaenh.c
+3
-3
No files found.
dlls/rsaenh/implglue.c
View file @
4e3b2870
...
...
@@ -70,9 +70,9 @@ BOOL update_hash_impl(BCRYPT_HASH_HANDLE hash_handle, const BYTE *pbData, DWORD
return
TRUE
;
}
BOOL
finalize_hash_impl
(
BCRYPT_HASH_HANDLE
hash_handle
,
BYTE
*
pbHashValu
e
)
BOOL
finalize_hash_impl
(
BCRYPT_HASH_HANDLE
hash_handle
,
BYTE
*
hash_value
,
DWORD
hash_siz
e
)
{
BCryptFinishHash
(
hash_handle
,
pbHashValue
,
RSAENH_MAX_HASH_SIZE
,
0
);
BCryptFinishHash
(
hash_handle
,
hash_value
,
hash_size
,
0
);
BCryptDestroyHash
(
hash_handle
);
return
TRUE
;
}
...
...
dlls/rsaenh/implglue.h
View file @
4e3b2870
...
...
@@ -41,7 +41,7 @@ typedef union tagKEY_CONTEXT {
BOOL
init_hash_impl
(
ALG_ID
aiAlgid
,
BCRYPT_HASH_HANDLE
*
hash_handle
)
DECLSPEC_HIDDEN
;
BOOL
update_hash_impl
(
BCRYPT_HASH_HANDLE
hash_handle
,
const
BYTE
*
pbData
,
DWORD
dwDataLen
)
DECLSPEC_HIDDEN
;
BOOL
finalize_hash_impl
(
BCRYPT_HASH_HANDLE
hash_handle
,
BYTE
*
pbHashValu
e
)
DECLSPEC_HIDDEN
;
BOOL
finalize_hash_impl
(
BCRYPT_HASH_HANDLE
hash_handle
,
BYTE
*
hash_value
,
DWORD
hash_siz
e
)
DECLSPEC_HIDDEN
;
BOOL
duplicate_hash_impl
(
BCRYPT_HASH_HANDLE
src_hash_handle
,
BCRYPT_HASH_HANDLE
*
dest_hash_handle
)
DECLSPEC_HIDDEN
;
...
...
dlls/rsaenh/rsaenh.c
View file @
4e3b2870
...
...
@@ -816,7 +816,7 @@ static inline void finalize_hash(CRYPTHASH *pCryptHash)
if
(
pCryptHash
->
pHMACInfo
)
{
BYTE
abHashValue
[
RSAENH_MAX_HASH_SIZE
];
finalize_hash_impl
(
pCryptHash
->
hash_handle
,
pCryptHash
->
abHashValue
);
finalize_hash_impl
(
pCryptHash
->
hash_handle
,
pCryptHash
->
abHashValue
,
pCryptHash
->
dwHashSize
);
memcpy
(
abHashValue
,
pCryptHash
->
abHashValue
,
pCryptHash
->
dwHashSize
);
init_hash_impl
(
pCryptHash
->
pHMACInfo
->
HashAlgid
,
&
pCryptHash
->
hash_handle
);
update_hash_impl
(
pCryptHash
->
hash_handle
,
...
...
@@ -824,7 +824,7 @@ static inline void finalize_hash(CRYPTHASH *pCryptHash)
pCryptHash
->
pHMACInfo
->
cbOuterString
);
update_hash_impl
(
pCryptHash
->
hash_handle
,
abHashValue
,
pCryptHash
->
dwHashSize
);
finalize_hash_impl
(
pCryptHash
->
hash_handle
,
pCryptHash
->
abHashValue
);
finalize_hash_impl
(
pCryptHash
->
hash_handle
,
pCryptHash
->
abHashValue
,
pCryptHash
->
dwHashSize
);
pCryptHash
->
hash_handle
=
NULL
;
}
break
;
...
...
@@ -842,7 +842,7 @@ static inline void finalize_hash(CRYPTHASH *pCryptHash)
break
;
default:
finalize_hash_impl
(
pCryptHash
->
hash_handle
,
pCryptHash
->
abHashValue
);
finalize_hash_impl
(
pCryptHash
->
hash_handle
,
pCryptHash
->
abHashValue
,
pCryptHash
->
dwHashSize
);
pCryptHash
->
hash_handle
=
NULL
;
}
}
...
...
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