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
4c917e95
Commit
4c917e95
authored
Jul 06, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Implement duplicate_hash_impl for bcrypt-based hashes.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
25de5c92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
implglue.c
dlls/rsaenh/implglue.c
+11
-3
bcrypt.h
include/bcrypt.h
+1
-0
No files found.
dlls/rsaenh/implglue.c
View file @
4c917e95
...
@@ -160,9 +160,17 @@ BOOL finalize_hash_impl(ALG_ID aiAlgid, HASH_CONTEXT *pHashContext, BYTE *pbHash
...
@@ -160,9 +160,17 @@ BOOL finalize_hash_impl(ALG_ID aiAlgid, HASH_CONTEXT *pHashContext, BYTE *pbHash
BOOL
duplicate_hash_impl
(
ALG_ID
aiAlgid
,
const
HASH_CONTEXT
*
pSrcHashContext
,
BOOL
duplicate_hash_impl
(
ALG_ID
aiAlgid
,
const
HASH_CONTEXT
*
pSrcHashContext
,
HASH_CONTEXT
*
pDestHashContext
)
HASH_CONTEXT
*
pDestHashContext
)
{
{
*
pDestHashContext
=
*
pSrcHashContext
;
switch
(
aiAlgid
)
{
return
TRUE
;
case
CALG_MD2
:
case
CALG_MD4
:
case
CALG_MD5
:
case
CALG_SHA
:
*
pDestHashContext
=
*
pSrcHashContext
;
return
TRUE
;
default:
return
!
BCryptDuplicateHash
(
pSrcHashContext
->
bcrypt_hash
,
&
pDestHashContext
->
bcrypt_hash
,
NULL
,
0
,
0
);
}
}
}
BOOL
new_key_impl
(
ALG_ID
aiAlgid
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
)
BOOL
new_key_impl
(
ALG_ID
aiAlgid
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
)
...
...
include/bcrypt.h
View file @
4c917e95
...
@@ -113,5 +113,6 @@ NTSTATUS WINAPI BCryptHash(BCRYPT_ALG_HANDLE, PUCHAR, ULONG, PUCHAR, ULONG, PUCH
...
@@ -113,5 +113,6 @@ NTSTATUS WINAPI BCryptHash(BCRYPT_ALG_HANDLE, PUCHAR, ULONG, PUCHAR, ULONG, PUCH
NTSTATUS
WINAPI
BCryptHashData
(
BCRYPT_HASH_HANDLE
,
PUCHAR
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
BCryptHashData
(
BCRYPT_HASH_HANDLE
,
PUCHAR
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
BCryptOpenAlgorithmProvider
(
BCRYPT_ALG_HANDLE
*
,
LPCWSTR
,
LPCWSTR
,
ULONG
);
NTSTATUS
WINAPI
BCryptOpenAlgorithmProvider
(
BCRYPT_ALG_HANDLE
*
,
LPCWSTR
,
LPCWSTR
,
ULONG
);
NTSTATUS
WINAPI
BCryptSetProperty
(
BCRYPT_HANDLE
,
LPCWSTR
,
PUCHAR
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
BCryptSetProperty
(
BCRYPT_HANDLE
,
LPCWSTR
,
PUCHAR
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
BCryptDuplicateHash
(
BCRYPT_HASH_HANDLE
,
BCRYPT_HASH_HANDLE
*
,
UCHAR
*
,
ULONG
,
ULONG
);
#endif
/* __WINE_BCRYPT_H */
#endif
/* __WINE_BCRYPT_H */
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