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
038169b6
Commit
038169b6
authored
Mar 15, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Assign to structs instead of using memcpy.
parent
b6a15291
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
implglue.c
dlls/rsaenh/implglue.c
+2
-2
rsaenh.c
dlls/rsaenh/rsaenh.c
+3
-3
No files found.
dlls/rsaenh/implglue.c
View file @
038169b6
...
...
@@ -134,7 +134,7 @@ BOOL finalize_hash_impl(ALG_ID aiAlgid, HASH_CONTEXT *pHashContext, BYTE *pbHash
BOOL
duplicate_hash_impl
(
ALG_ID
aiAlgid
,
CONST
HASH_CONTEXT
*
pSrcHashContext
,
HASH_CONTEXT
*
pDestHashContext
)
{
memcpy
(
pDestHashContext
,
pSrcHashContext
,
sizeof
(
HASH_CONTEXT
))
;
*
pDestHashContext
=
*
pSrcHashContext
;
return
TRUE
;
}
...
...
@@ -227,7 +227,7 @@ BOOL duplicate_key_impl(ALG_ID aiAlgid, CONST KEY_CONTEXT *pSrcKeyContext,
case
CALG_AES_128
:
case
CALG_AES_192
:
case
CALG_AES_256
:
memcpy
(
pDestKeyContext
,
pSrcKeyContext
,
sizeof
(
KEY_CONTEXT
))
;
*
pDestKeyContext
=
*
pSrcKeyContext
;
break
;
case
CALG_RSA_KEYX
:
case
CALG_RSA_SIGN
:
...
...
dlls/rsaenh/rsaenh.c
View file @
038169b6
...
...
@@ -548,7 +548,7 @@ static BOOL copy_hmac_info(PHMAC_INFO *dst, const HMAC_INFO *src) {
if
(
!
src
)
return
FALSE
;
*
dst
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
HMAC_INFO
));
if
(
!*
dst
)
return
FALSE
;
memcpy
(
*
dst
,
src
,
sizeof
(
HMAC_INFO
))
;
**
dst
=
*
src
;
(
*
dst
)
->
pbInnerString
=
NULL
;
(
*
dst
)
->
pbOuterString
=
NULL
;
if
((
*
dst
)
->
cbInnerString
==
0
)
(
*
dst
)
->
cbInnerString
=
RSAENH_HMAC_DEF_PAD_LEN
;
...
...
@@ -1837,7 +1837,7 @@ BOOL WINAPI RSAENH_CPDuplicateHash(HCRYPTPROV hUID, HCRYPTHASH hHash, DWORD *pdw
destroy_hash
,
(
OBJECTHDR
**
)
&
pDestHash
);
if
(
*
phHash
!=
(
HCRYPTHASH
)
INVALID_HANDLE_VALUE
)
{
memcpy
(
pDestHash
,
pSrcHash
,
sizeof
(
CRYPTHASH
))
;
*
pDestHash
=
*
pSrcHash
;
duplicate_hash_impl
(
pSrcHash
->
aiAlgid
,
&
pSrcHash
->
context
,
&
pDestHash
->
context
);
copy_hmac_info
(
&
pDestHash
->
pHMACInfo
,
pSrcHash
->
pHMACInfo
);
copy_data_blob
(
&
pDestHash
->
tpPRFParams
.
blobLabel
,
&
pSrcHash
->
tpPRFParams
.
blobLabel
);
...
...
@@ -1893,7 +1893,7 @@ BOOL WINAPI RSAENH_CPDuplicateKey(HCRYPTPROV hUID, HCRYPTKEY hKey, DWORD *pdwRes
(
OBJECTHDR
**
)
&
pDestKey
);
if
(
*
phKey
!=
(
HCRYPTKEY
)
INVALID_HANDLE_VALUE
)
{
memcpy
(
pDestKey
,
pSrcKey
,
sizeof
(
CRYPTKEY
))
;
*
pDestKey
=
*
pSrcKey
;
copy_data_blob
(
&
pDestKey
->
siSChannelInfo
.
blobServerRandom
,
&
pSrcKey
->
siSChannelInfo
.
blobServerRandom
);
copy_data_blob
(
&
pDestKey
->
siSChannelInfo
.
blobClientRandom
,
...
...
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