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
d963d056
Commit
d963d056
authored
Feb 01, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt: In unixlib, don't use Windows long type.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6a9ad836
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
bcrypt_internal.h
dlls/bcrypt/bcrypt_internal.h
+11
-11
gnutls.c
dlls/bcrypt/gnutls.c
+7
-7
No files found.
dlls/bcrypt/bcrypt_internal.h
View file @
d963d056
...
...
@@ -155,7 +155,7 @@ struct algorithm
struct
object
hdr
;
enum
alg_id
id
;
enum
mode_id
mode
;
ULONG
flags
;
unsigned
flags
;
};
struct
key_symmetric
...
...
@@ -165,7 +165,7 @@ struct key_symmetric
UCHAR
*
vector
;
ULONG
vector_len
;
UCHAR
*
secret
;
ULONG
secret_len
;
unsigned
secret_len
;
CRITICAL_SECTION
cs
;
};
...
...
@@ -174,9 +174,9 @@ struct key_symmetric
struct
key_asymmetric
{
ULONG
bitlen
;
/* ignored for ECC keys */
ULONG
flags
;
unsigned
flags
;
UCHAR
*
pubkey
;
ULONG
pubkey_len
;
unsigned
pubkey_len
;
DSSSEED
dss_seed
;
};
...
...
@@ -208,7 +208,7 @@ struct key_symmetric_encrypt_params
{
struct
key
*
key
;
const
UCHAR
*
input
;
ULONG
input_len
;
unsigned
input_len
;
UCHAR
*
output
;
ULONG
output_len
;
};
...
...
@@ -217,7 +217,7 @@ struct key_symmetric_decrypt_params
{
struct
key
*
key
;
const
UCHAR
*
input
;
ULONG
input_len
;
unsigned
input_len
;
UCHAR
*
output
;
ULONG
output_len
;
};
...
...
@@ -233,7 +233,7 @@ struct key_asymmetric_decrypt_params
{
struct
key
*
key
;
UCHAR
*
input
;
ULONG
input_len
;
unsigned
input_len
;
UCHAR
*
output
;
ULONG
output_len
;
ULONG
*
ret_len
;
...
...
@@ -250,11 +250,11 @@ struct key_asymmetric_sign_params
struct
key
*
key
;
void
*
padding
;
UCHAR
*
input
;
ULONG
input_len
;
unsigned
input_len
;
UCHAR
*
output
;
ULONG
output_len
;
ULONG
*
ret_len
;
ULONG
flags
;
unsigned
flags
;
};
struct
key_asymmetric_verify_params
...
...
@@ -262,10 +262,10 @@ struct key_asymmetric_verify_params
struct
key
*
key
;
void
*
padding
;
UCHAR
*
hash
;
ULONG
hash_len
;
unsigned
hash_len
;
UCHAR
*
signature
;
ULONG
signature_len
;
ULONG
flags
;
unsigned
flags
;
};
struct
key_export_params
...
...
dlls/bcrypt/gnutls.c
View file @
d963d056
...
...
@@ -610,7 +610,7 @@ static ULONG export_gnutls_datum( UCHAR *buffer, ULONG buflen, gnutls_datum_t *d
}
#define EXPORT_SIZE(d,f,p) export_gnutls_datum( NULL, bitlen / f, &d, p )
static
NTSTATUS
export_gnutls_pubkey_rsa
(
gnutls_privkey_t
gnutls_key
,
ULONG
bitlen
,
void
*
pubkey
,
ULONG
*
pubkey_len
)
static
NTSTATUS
export_gnutls_pubkey_rsa
(
gnutls_privkey_t
gnutls_key
,
ULONG
bitlen
,
void
*
pubkey
,
unsigned
*
pubkey_len
)
{
BCRYPT_RSAKEY_BLOB
*
rsa_blob
=
pubkey
;
gnutls_datum_t
m
,
e
;
...
...
@@ -649,7 +649,7 @@ static NTSTATUS export_gnutls_pubkey_rsa( gnutls_privkey_t gnutls_key, ULONG bit
}
static
NTSTATUS
export_gnutls_pubkey_ecc
(
gnutls_privkey_t
gnutls_key
,
enum
alg_id
alg_id
,
void
*
pubkey
,
ULONG
*
pubkey_len
)
unsigned
*
pubkey_len
)
{
BCRYPT_ECCKEY_BLOB
*
ecc_blob
=
pubkey
;
gnutls_ecc_curve_t
curve
;
...
...
@@ -709,7 +709,7 @@ static NTSTATUS export_gnutls_pubkey_ecc( gnutls_privkey_t gnutls_key, enum alg_
return
STATUS_SUCCESS
;
}
static
NTSTATUS
export_gnutls_pubkey_dsa
(
gnutls_privkey_t
gnutls_key
,
ULONG
bitlen
,
void
*
pubkey
,
ULONG
*
pubkey_len
)
static
NTSTATUS
export_gnutls_pubkey_dsa
(
gnutls_privkey_t
gnutls_key
,
ULONG
bitlen
,
void
*
pubkey
,
unsigned
*
pubkey_len
)
{
BCRYPT_DSA_KEY_BLOB
*
dsa_blob
=
pubkey
;
gnutls_datum_t
p
,
q
,
g
,
y
;
...
...
@@ -773,8 +773,8 @@ static void reverse_bytes( UCHAR *buf, ULONG len )
}
#define Q_SIZE 20
static
NTSTATUS
export_gnutls_pubkey_dsa_capi
(
gnutls_privkey_t
gnutls_key
,
const
DSSSEED
*
seed
,
ULONG
bitlen
,
void
*
pubkey
,
ULONG
*
pubkey_len
)
static
NTSTATUS
export_gnutls_pubkey_dsa_capi
(
gnutls_privkey_t
gnutls_key
,
const
DSSSEED
*
seed
,
unsigned
bitlen
,
void
*
pubkey
,
unsigned
*
pubkey_len
)
{
BLOBHEADER
*
hdr
=
pubkey
;
DSSPUBKEY
*
dsskey
;
...
...
@@ -1492,7 +1492,7 @@ static NTSTATUS key_asymmetric_verify( void *args )
{
const
struct
key_asymmetric_verify_params
*
params
=
args
;
struct
key
*
key
=
params
->
key
;
ULONG
flags
=
params
->
flags
;
unsigned
flags
=
params
->
flags
;
gnutls_digest_algorithm_t
hash_alg
;
gnutls_sign_algorithm_t
sign_alg
;
gnutls_datum_t
gnutls_hash
,
gnutls_signature
;
...
...
@@ -1644,7 +1644,7 @@ static NTSTATUS key_asymmetric_sign( void *args )
{
const
struct
key_asymmetric_sign_params
*
params
=
args
;
struct
key
*
key
=
params
->
key
;
ULONG
flags
=
params
->
flags
;
unsigned
flags
=
params
->
flags
;
BCRYPT_PKCS1_PADDING_INFO
*
pad
=
params
->
padding
;
gnutls_datum_t
hash
,
signature
;
gnutls_digest_algorithm_t
hash_alg
;
...
...
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