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
c94f113f
Commit
c94f113f
authored
Aug 23, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Aug 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Constify some variables.
parent
4945a255
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
implglue.c
dlls/rsaenh/implglue.c
+2
-2
implglue.h
dlls/rsaenh/implglue.h
+2
-2
rsaenh.c
dlls/rsaenh/rsaenh.c
+3
-3
No files found.
dlls/rsaenh/implglue.c
View file @
c94f113f
...
...
@@ -328,7 +328,7 @@ BOOL gen_rand_impl(BYTE *pbBuffer, DWORD dwLen)
return
SystemFunction036
(
pbBuffer
,
dwLen
);
}
BOOL
export_public_key_impl
(
BYTE
*
pbDest
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
*
pdwPubExp
)
BOOL
export_public_key_impl
(
BYTE
*
pbDest
,
const
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
*
pdwPubExp
)
{
mp_to_unsigned_bin
(
&
pKeyContext
->
rsa
.
N
,
pbDest
);
reverse_bytes
(
pbDest
,
dwKeyLen
);
...
...
@@ -362,7 +362,7 @@ BOOL import_public_key_impl(CONST BYTE *pbSrc, KEY_CONTEXT *pKeyContext, DWORD d
return
TRUE
;
}
BOOL
export_private_key_impl
(
BYTE
*
pbDest
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
BOOL
export_private_key_impl
(
BYTE
*
pbDest
,
const
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
*
pdwPubExp
)
{
mp_to_unsigned_bin
(
&
pKeyContext
->
rsa
.
N
,
pbDest
);
...
...
dlls/rsaenh/implglue.h
View file @
c94f113f
...
...
@@ -86,11 +86,11 @@ BOOL encrypt_block_impl(ALG_ID aiAlgid, DWORD dwKeySpec, KEY_CONTEXT *pKeyContex
DWORD
enc
);
BOOL
encrypt_stream_impl
(
ALG_ID
aiAlgid
,
KEY_CONTEXT
*
pKeyContext
,
BYTE
*
pbInOut
,
DWORD
dwLen
);
BOOL
export_public_key_impl
(
BYTE
*
pbDest
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
BOOL
export_public_key_impl
(
BYTE
*
pbDest
,
const
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
*
pdwPubExp
);
BOOL
import_public_key_impl
(
CONST
BYTE
*
pbSrc
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
dwPubExp
);
BOOL
export_private_key_impl
(
BYTE
*
pbDest
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
BOOL
export_private_key_impl
(
BYTE
*
pbDest
,
const
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
*
pdwPubExp
);
BOOL
import_private_key_impl
(
CONST
BYTE
*
pbSrc
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
dwPubExp
);
...
...
dlls/rsaenh/rsaenh.c
View file @
c94f113f
...
...
@@ -521,7 +521,7 @@ static inline void free_hmac_info(PHMAC_INFO hmac_info) {
* NOTES
* See Internet RFC 2104 for details on the HMAC algorithm.
*/
static
BOOL
copy_hmac_info
(
PHMAC_INFO
*
dst
,
PHMAC_INFO
src
)
{
static
BOOL
copy_hmac_info
(
PHMAC_INFO
*
dst
,
const
HMAC_INFO
*
src
)
{
if
(
!
src
)
return
FALSE
;
*
dst
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
HMAC_INFO
));
if
(
!*
dst
)
return
FALSE
;
...
...
@@ -974,7 +974,7 @@ static void destroy_key_container(OBJECTHDR *pObjectHdr)
* Success: Handle to the new key container.
* Failure: INVALID_HANDLE_VALUE
*/
static
HCRYPTPROV
new_key_container
(
PCCH
pszContainerName
,
DWORD
dwFlags
,
PVTableProvStruc
pVTable
)
static
HCRYPTPROV
new_key_container
(
PCCH
pszContainerName
,
DWORD
dwFlags
,
const
VTableProvStruc
*
pVTable
)
{
KEYCONTAINER
*
pKeyContainer
;
HCRYPTPROV
hKeyContainer
;
...
...
@@ -1039,7 +1039,7 @@ static HCRYPTPROV new_key_container(PCCH pszContainerName, DWORD dwFlags, PVTabl
* Success: Handle to the key container read from the registry
* Failure: INVALID_HANDLE_VALUE
*/
static
HCRYPTPROV
read_key_container
(
PCHAR
pszContainerName
,
DWORD
dwFlags
,
PVTableProvStruc
pVTable
)
static
HCRYPTPROV
read_key_container
(
PCHAR
pszContainerName
,
DWORD
dwFlags
,
const
VTableProvStruc
*
pVTable
)
{
CHAR
szRSABase
[
MAX_PATH
];
BYTE
*
pbKey
;
...
...
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