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
7231d458
Commit
7231d458
authored
Jan 22, 2024
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt: Fix private data size in wow64 thunks.
parent
28a829a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
bcrypt_internal.h
dlls/bcrypt/bcrypt_internal.h
+2
-1
gnutls.c
dlls/bcrypt/gnutls.c
+5
-9
No files found.
dlls/bcrypt/bcrypt_internal.h
View file @
7231d458
...
...
@@ -184,11 +184,12 @@ struct key_asymmetric
DSSSEED
dss_seed
;
};
#define PRIVATE_DATA_SIZE 3
struct
key
{
struct
object
hdr
;
enum
alg_id
alg_id
;
UINT64
private
[
3
];
/* private data for backend */
UINT64
private
[
PRIVATE_DATA_SIZE
];
/* private data for backend */
union
{
struct
key_symmetric
s
;
...
...
dlls/bcrypt/gnutls.c
View file @
7231d458
...
...
@@ -2741,7 +2741,7 @@ struct key32
{
struct
object
hdr
;
enum
alg_id
alg_id
;
UINT64
private
[
2
];
/* private data for backend */
UINT64
private
[
PRIVATE_DATA_SIZE
];
/* private data for backend */
union
{
struct
key_symmetric32
s
;
...
...
@@ -2791,8 +2791,7 @@ static struct key *get_symmetric_key( struct key32 *key32, struct key *key )
{
key
->
hdr
=
key32
->
hdr
;
key
->
alg_id
=
key32
->
alg_id
;
key
->
private
[
0
]
=
key32
->
private
[
0
];
key
->
private
[
1
]
=
key32
->
private
[
1
];
memcpy
(
key
->
private
,
key32
->
private
,
sizeof
(
key
->
private
)
);
key
->
u
.
s
.
mode
=
key32
->
u
.
s
.
mode
;
key
->
u
.
s
.
block_size
=
key32
->
u
.
s
.
block_size
;
key
->
u
.
s
.
vector
=
ULongToPtr
(
key32
->
u
.
s
.
vector
);
...
...
@@ -2806,8 +2805,7 @@ static struct key *get_asymmetric_key( struct key32 *key32, struct key *key )
{
key
->
hdr
=
key32
->
hdr
;
key
->
alg_id
=
key32
->
alg_id
;
key
->
private
[
0
]
=
key32
->
private
[
0
];
key
->
private
[
1
]
=
key32
->
private
[
1
];
memcpy
(
key
->
private
,
key32
->
private
,
sizeof
(
key
->
private
)
);
key
->
u
.
a
.
bitlen
=
key32
->
u
.
a
.
bitlen
;
key
->
u
.
a
.
flags
=
key32
->
u
.
a
.
flags
;
key
->
u
.
a
.
dss_seed
=
key32
->
u
.
a
.
dss_seed
;
...
...
@@ -2816,14 +2814,12 @@ static struct key *get_asymmetric_key( struct key32 *key32, struct key *key )
static
void
put_symmetric_key32
(
struct
key
*
key
,
struct
key32
*
key32
)
{
key32
->
private
[
0
]
=
key
->
private
[
0
];
key32
->
private
[
1
]
=
key
->
private
[
1
];
memcpy
(
key32
->
private
,
key
->
private
,
sizeof
(
key32
->
private
)
);
}
static
void
put_asymmetric_key32
(
struct
key
*
key
,
struct
key32
*
key32
)
{
key32
->
private
[
0
]
=
key
->
private
[
0
];
key32
->
private
[
1
]
=
key
->
private
[
1
];
memcpy
(
key32
->
private
,
key
->
private
,
sizeof
(
key32
->
private
)
);
key32
->
u
.
a
.
flags
=
key
->
u
.
a
.
flags
;
key32
->
u
.
a
.
dss_seed
=
key
->
u
.
a
.
dss_seed
;
}
...
...
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