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
ec85dfe3
Commit
ec85dfe3
authored
Sep 12, 2022
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt: Rename mode_id to chain_mode.
parent
6f5028dd
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
49 deletions
+49
-49
bcrypt_internal.h
dlls/bcrypt/bcrypt_internal.h
+8
-8
bcrypt_main.c
dlls/bcrypt/bcrypt_main.c
+35
-35
gnutls.c
dlls/bcrypt/gnutls.c
+6
-6
No files found.
dlls/bcrypt/bcrypt_internal.h
View file @
ec85dfe3
...
@@ -144,26 +144,26 @@ enum alg_id
...
@@ -144,26 +144,26 @@ enum alg_id
ALG_ID_RNG
,
ALG_ID_RNG
,
};
};
enum
mode_id
enum
chain_mode
{
{
MODE_ID
_CBC
,
CHAIN_MODE
_CBC
,
MODE_ID
_ECB
,
CHAIN_MODE
_ECB
,
MODE_ID
_CFB
,
CHAIN_MODE
_CFB
,
MODE_ID
_CCM
,
CHAIN_MODE
_CCM
,
MODE_ID
_GCM
,
CHAIN_MODE
_GCM
,
};
};
struct
algorithm
struct
algorithm
{
{
struct
object
hdr
;
struct
object
hdr
;
enum
alg_id
id
;
enum
alg_id
id
;
enum
mode_id
mode
;
enum
chain_mode
mode
;
unsigned
flags
;
unsigned
flags
;
};
};
struct
key_symmetric
struct
key_symmetric
{
{
enum
mode_id
mode
;
enum
chain_mode
mode
;
ULONG
block_size
;
ULONG
block_size
;
UCHAR
*
vector
;
UCHAR
*
vector
;
ULONG
vector_len
;
ULONG
vector_len
;
...
...
dlls/bcrypt/bcrypt_main.c
View file @
ec85dfe3
This diff is collapsed.
Click to expand it.
dlls/bcrypt/gnutls.c
View file @
ec85dfe3
...
@@ -490,7 +490,7 @@ static gnutls_cipher_algorithm_t get_gnutls_cipher( const struct key *key )
...
@@ -490,7 +490,7 @@ static gnutls_cipher_algorithm_t get_gnutls_cipher( const struct key *key )
WARN
(
"handle block size
\n
"
);
WARN
(
"handle block size
\n
"
);
switch
(
key
->
u
.
s
.
mode
)
switch
(
key
->
u
.
s
.
mode
)
{
{
case
MODE_ID
_CBC
:
case
CHAIN_MODE
_CBC
:
return
GNUTLS_CIPHER_3DES_CBC
;
return
GNUTLS_CIPHER_3DES_CBC
;
default:
default:
break
;
break
;
...
@@ -502,17 +502,17 @@ static gnutls_cipher_algorithm_t get_gnutls_cipher( const struct key *key )
...
@@ -502,17 +502,17 @@ static gnutls_cipher_algorithm_t get_gnutls_cipher( const struct key *key )
WARN
(
"handle block size
\n
"
);
WARN
(
"handle block size
\n
"
);
switch
(
key
->
u
.
s
.
mode
)
switch
(
key
->
u
.
s
.
mode
)
{
{
case
MODE_ID
_GCM
:
case
CHAIN_MODE
_GCM
:
if
(
key
->
u
.
s
.
secret_len
==
16
)
return
GNUTLS_CIPHER_AES_128_GCM
;
if
(
key
->
u
.
s
.
secret_len
==
16
)
return
GNUTLS_CIPHER_AES_128_GCM
;
if
(
key
->
u
.
s
.
secret_len
==
32
)
return
GNUTLS_CIPHER_AES_256_GCM
;
if
(
key
->
u
.
s
.
secret_len
==
32
)
return
GNUTLS_CIPHER_AES_256_GCM
;
break
;
break
;
case
MODE_ID
_ECB
:
/* can be emulated with CBC + empty IV */
case
CHAIN_MODE
_ECB
:
/* can be emulated with CBC + empty IV */
case
MODE_ID
_CBC
:
case
CHAIN_MODE
_CBC
:
if
(
key
->
u
.
s
.
secret_len
==
16
)
return
GNUTLS_CIPHER_AES_128_CBC
;
if
(
key
->
u
.
s
.
secret_len
==
16
)
return
GNUTLS_CIPHER_AES_128_CBC
;
if
(
key
->
u
.
s
.
secret_len
==
24
)
return
GNUTLS_CIPHER_AES_192_CBC
;
if
(
key
->
u
.
s
.
secret_len
==
24
)
return
GNUTLS_CIPHER_AES_192_CBC
;
if
(
key
->
u
.
s
.
secret_len
==
32
)
return
GNUTLS_CIPHER_AES_256_CBC
;
if
(
key
->
u
.
s
.
secret_len
==
32
)
return
GNUTLS_CIPHER_AES_256_CBC
;
break
;
break
;
case
MODE_ID
_CFB
:
case
CHAIN_MODE
_CFB
:
if
(
key
->
u
.
s
.
secret_len
==
16
)
return
GNUTLS_CIPHER_AES_128_CFB8
;
if
(
key
->
u
.
s
.
secret_len
==
16
)
return
GNUTLS_CIPHER_AES_128_CFB8
;
if
(
key
->
u
.
s
.
secret_len
==
24
)
return
GNUTLS_CIPHER_AES_192_CFB8
;
if
(
key
->
u
.
s
.
secret_len
==
24
)
return
GNUTLS_CIPHER_AES_192_CFB8
;
if
(
key
->
u
.
s
.
secret_len
==
32
)
return
GNUTLS_CIPHER_AES_256_CFB8
;
if
(
key
->
u
.
s
.
secret_len
==
32
)
return
GNUTLS_CIPHER_AES_256_CFB8
;
...
@@ -2041,7 +2041,7 @@ typedef ULONG PTR32;
...
@@ -2041,7 +2041,7 @@ typedef ULONG PTR32;
struct
key_symmetric32
struct
key_symmetric32
{
{
enum
mode_id
mode
;
enum
chain_mode
mode
;
ULONG
block_size
;
ULONG
block_size
;
PTR32
vector
;
PTR32
vector
;
ULONG
vector_len
;
ULONG
vector_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