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
46ef0fb4
Commit
46ef0fb4
authored
Nov 07, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Nov 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Set correct bit lengths for algorithms.
parent
8456f67a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
protectdata.c
dlls/crypt32/protectdata.c
+4
-2
No files found.
dlls/crypt32/protectdata.c
View file @
46ef0fb4
...
@@ -48,7 +48,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(crypt);
...
@@ -48,7 +48,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(crypt);
#define CRYPT32_PROTECTDATA_PROV PROV_RSA_FULL
#define CRYPT32_PROTECTDATA_PROV PROV_RSA_FULL
#define CRYPT32_PROTECTDATA_HASH_CALG CALG_SHA1
#define CRYPT32_PROTECTDATA_HASH_CALG CALG_SHA1
#define CRYPT32_PROTECTDATA_HASH_LEN 160
#define CRYPT32_PROTECTDATA_KEY_CALG CALG_RC2
#define CRYPT32_PROTECTDATA_KEY_CALG CALG_RC2
#define CRYPT32_PROTECTDATA_KEY_LEN 40
#define CRYPT32_PROTECTDATA_SALT_LEN 16
#define CRYPT32_PROTECTDATA_SALT_LEN 16
static
const
BYTE
crypt32_protectdata_secret
[]
=
{
static
const
BYTE
crypt32_protectdata_secret
[]
=
{
...
@@ -597,13 +599,13 @@ BOOL fill_protect_data(struct protect_data_t * pInfo, LPCWSTR szDataDescr,
...
@@ -597,13 +599,13 @@ BOOL fill_protect_data(struct protect_data_t * pInfo, LPCWSTR szDataDescr,
}
}
pInfo
->
cipher_alg
=
CRYPT32_PROTECTDATA_KEY_CALG
;
pInfo
->
cipher_alg
=
CRYPT32_PROTECTDATA_KEY_CALG
;
pInfo
->
cipher_key_len
=
0x0000
;
/* FIXME: get correct value */
pInfo
->
cipher_key_len
=
CRYPT32_PROTECTDATA_KEY_LEN
;
convert_str_to_blob
(
crypt_magic_str
,
&
pInfo
->
data0
);
convert_str_to_blob
(
crypt_magic_str
,
&
pInfo
->
data0
);
pInfo
->
null1
=
0x0000
;
pInfo
->
null1
=
0x0000
;
pInfo
->
hash_alg
=
CRYPT32_PROTECTDATA_HASH_CALG
;
pInfo
->
hash_alg
=
CRYPT32_PROTECTDATA_HASH_CALG
;
pInfo
->
hash_len
=
0x0000
;
/* FIXME: get correct value */
pInfo
->
hash_len
=
CRYPT32_PROTECTDATA_HASH_LEN
;
/* allocate memory to hold a salt */
/* allocate memory to hold a salt */
pInfo
->
salt
.
cbData
=
CRYPT32_PROTECTDATA_SALT_LEN
;
pInfo
->
salt
.
cbData
=
CRYPT32_PROTECTDATA_SALT_LEN
;
...
...
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