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
5ccf2bd9
Commit
5ccf2bd9
authored
Jan 13, 2011
by
Juan Lang
Committed by
Alexandre Julliard
Jan 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Move check for CRYPT_IPSEC_HMAC_KEY to each key import function.
parent
61cf2d35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
rsaenh.c
dlls/rsaenh/rsaenh.c
+24
-6
No files found.
dlls/rsaenh/rsaenh.c
View file @
5ccf2bd9
...
...
@@ -2694,6 +2694,12 @@ static BOOL import_private_key(HCRYPTPROV hProv, CONST BYTE *pbData, DWORD dwDat
CONST
RSAPUBKEY
*
pRSAPubKey
=
(
CONST
RSAPUBKEY
*
)(
pBlobHeader
+
1
);
BOOL
ret
;
if
(
dwFlags
&
CRYPT_IPSEC_HMAC_KEY
)
{
FIXME
(
"unimplemented for CRYPT_IPSEC_HMAC_KEY
\n
"
);
SetLastError
(
NTE_BAD_FLAGS
);
return
FALSE
;
}
if
(
!
lookup_handle
(
&
handle_table
,
hProv
,
RSAENH_MAGIC_CONTAINER
,
(
OBJECTHDR
**
)
&
pKeyContainer
))
{
...
...
@@ -2770,6 +2776,12 @@ static BOOL import_public_key(HCRYPTPROV hProv, CONST BYTE *pbData, DWORD dwData
ALG_ID
algID
;
BOOL
ret
;
if
(
dwFlags
&
CRYPT_IPSEC_HMAC_KEY
)
{
FIXME
(
"unimplemented for CRYPT_IPSEC_HMAC_KEY
\n
"
);
SetLastError
(
NTE_BAD_FLAGS
);
return
FALSE
;
}
if
(
!
lookup_handle
(
&
handle_table
,
hProv
,
RSAENH_MAGIC_CONTAINER
,
(
OBJECTHDR
**
)
&
pKeyContainer
))
{
...
...
@@ -2844,6 +2856,12 @@ static BOOL import_symmetric_key(HCRYPTPROV hProv, CONST BYTE *pbData,
BYTE
*
pbDecrypted
;
DWORD
dwKeyLen
;
if
(
dwFlags
&
CRYPT_IPSEC_HMAC_KEY
)
{
FIXME
(
"unimplemented for CRYPT_IPSEC_HMAC_KEY
\n
"
);
SetLastError
(
NTE_BAD_FLAGS
);
return
FALSE
;
}
if
(
!
lookup_handle
(
&
handle_table
,
hPubKey
,
RSAENH_MAGIC_KEY
,
(
OBJECTHDR
**
)
&
pPubKey
)
||
pPubKey
->
aiAlgid
!=
CALG_RSA_KEYX
)
{
...
...
@@ -2913,6 +2931,12 @@ static BOOL import_plaintext_key(HCRYPTPROV hProv, CONST BYTE *pbData,
CONST
DWORD
*
pKeyLen
=
(
CONST
DWORD
*
)(
pBlobHeader
+
1
);
CONST
BYTE
*
pbKeyStream
=
(
CONST
BYTE
*
)(
pKeyLen
+
1
);
if
(
dwFlags
&
CRYPT_IPSEC_HMAC_KEY
)
{
FIXME
(
"unimplemented for CRYPT_IPSEC_HMAC_KEY
\n
"
);
SetLastError
(
NTE_BAD_FLAGS
);
return
FALSE
;
}
if
(
dwDataLen
<
sizeof
(
BLOBHEADER
)
+
sizeof
(
DWORD
)
+*
pKeyLen
)
{
SetLastError
(
NTE_BAD_DATA
);
/* FIXME: error code */
...
...
@@ -3026,12 +3050,6 @@ BOOL WINAPI RSAENH_CPImportKey(HCRYPTPROV hProv, CONST BYTE *pbData, DWORD dwDat
TRACE
(
"(hProv=%08lx, pbData=%p, dwDataLen=%d, hPubKey=%08lx, dwFlags=%08x, phKey=%p)
\n
"
,
hProv
,
pbData
,
dwDataLen
,
hPubKey
,
dwFlags
,
phKey
);
if
(
dwFlags
&
CRYPT_IPSEC_HMAC_KEY
)
{
FIXME
(
"unimplemented for CRYPT_IPSEC_HMAC_KEY
\n
"
);
SetLastError
(
NTE_BAD_FLAGS
);
return
FALSE
;
}
return
import_key
(
hProv
,
pbData
,
dwDataLen
,
hPubKey
,
dwFlags
,
TRUE
,
phKey
);
}
...
...
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