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
6f455e10
Commit
6f455e10
authored
Dec 15, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Dec 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt: Return correct error from key_asymmetric_encrypt() if key is missing.
parent
a7efc770
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
gnutls.c
dlls/bcrypt/gnutls.c
+2
-0
bcrypt.c
dlls/bcrypt/tests/bcrypt.c
+1
-1
No files found.
dlls/bcrypt/gnutls.c
View file @
6f455e10
...
...
@@ -2205,6 +2205,8 @@ static NTSTATUS key_asymmetric_encrypt( void *args )
NTSTATUS
status
=
STATUS_SUCCESS
;
int
ret
;
if
(
!
key_data
(
params
->
key
)
->
a
.
pubkey
)
return
STATUS_INVALID_HANDLE
;
d
.
data
=
params
->
input
;
d
.
size
=
params
->
input_len
;
if
((
ret
=
pgnutls_pubkey_encrypt_data
(
key_data
(
params
->
key
)
->
a
.
pubkey
,
0
,
&
d
,
&
e
)))
...
...
dlls/bcrypt/tests/bcrypt.c
View file @
6f455e10
...
...
@@ -2284,12 +2284,12 @@ static void test_rsa_encrypt(void)
ret
=
BCryptGenerateKeyPair
(
rsa
,
&
key
,
512
,
0
);
ok
(
ret
==
STATUS_SUCCESS
,
"got %lx
\n
"
,
ret
);
todo_wine
{
/* Not finalized key */
ret
=
BCryptEncrypt
(
key
,
input
,
sizeof
(
input
),
NULL
,
NULL
,
0
,
NULL
,
0
,
&
encrypted_size
,
0
);
ok
(
ret
==
STATUS_INVALID_HANDLE
,
"got %lx
\n
"
,
ret
);
BCryptFinalizeKeyPair
(
key
,
0
);
todo_wine
{
/* No padding */
memset
(
input_no_padding
,
0
,
sizeof
(
input_no_padding
));
strcpy
((
char
*
)
input_no_padding
,
"Hello World"
);
...
...
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