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
83f74fef
Commit
83f74fef
authored
Nov 28, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Nov 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Support setting the salt value through KP_SALT_EX.
parent
c9e0fa44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
rsaenh.c
dlls/rsaenh/rsaenh.c
+17
-0
No files found.
dlls/rsaenh/rsaenh.c
View file @
83f74fef
...
...
@@ -2823,6 +2823,23 @@ BOOL WINAPI RSAENH_CPSetKeyParam(HCRYPTPROV hProv, HCRYPTKEY hKey, DWORD dwParam
setup_key
(
pCryptKey
);
return
TRUE
;
case
KP_SALT_EX
:
{
CRYPT_INTEGER_BLOB
*
blob
=
(
CRYPT_INTEGER_BLOB
*
)
pbData
;
/* salt length can't be greater than 128 bits = 16 bytes */
if
(
blob
->
cbData
>
16
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
memcpy
(
pCryptKey
->
abKeyValue
+
pCryptKey
->
dwKeyLen
,
blob
->
pbData
,
blob
->
cbData
);
pCryptKey
->
dwSaltLen
=
blob
->
cbData
;
setup_key
(
pCryptKey
);
return
TRUE
;
}
case
KP_EFFECTIVE_KEYLEN
:
switch
(
pCryptKey
->
aiAlgid
)
{
case
CALG_RC2
:
...
...
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