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
1a3137fa
Commit
1a3137fa
authored
Sep 23, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Avoid using CONST.
parent
e476a201
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
implglue.c
dlls/rsaenh/implglue.c
+7
-7
implglue.h
dlls/rsaenh/implglue.h
+7
-7
rsaenh.c
dlls/rsaenh/rsaenh.c
+0
-0
No files found.
dlls/rsaenh/implglue.c
View file @
1a3137fa
...
...
@@ -84,7 +84,7 @@ BOOL init_hash_impl(ALG_ID aiAlgid, HASH_CONTEXT *pHashContext)
return
TRUE
;
}
BOOL
update_hash_impl
(
ALG_ID
aiAlgid
,
HASH_CONTEXT
*
pHashContext
,
CONST
BYTE
*
pbData
,
BOOL
update_hash_impl
(
ALG_ID
aiAlgid
,
HASH_CONTEXT
*
pHashContext
,
const
BYTE
*
pbData
,
DWORD
dwDataLen
)
{
switch
(
aiAlgid
)
...
...
@@ -167,7 +167,7 @@ BOOL finalize_hash_impl(ALG_ID aiAlgid, HASH_CONTEXT *pHashContext, BYTE *pbHash
return
TRUE
;
}
BOOL
duplicate_hash_impl
(
ALG_ID
aiAlgid
,
CONST
HASH_CONTEXT
*
pSrcHashContext
,
BOOL
duplicate_hash_impl
(
ALG_ID
aiAlgid
,
const
HASH_CONTEXT
*
pSrcHashContext
,
HASH_CONTEXT
*
pDestHashContext
)
{
*
pDestHashContext
=
*
pSrcHashContext
;
...
...
@@ -249,7 +249,7 @@ BOOL setup_key_impl(ALG_ID aiAlgid, KEY_CONTEXT *pKeyContext, DWORD dwKeyLen,
return
TRUE
;
}
BOOL
duplicate_key_impl
(
ALG_ID
aiAlgid
,
CONST
KEY_CONTEXT
*
pSrcKeyContext
,
BOOL
duplicate_key_impl
(
ALG_ID
aiAlgid
,
const
KEY_CONTEXT
*
pSrcKeyContext
,
KEY_CONTEXT
*
pDestKeyContext
)
{
switch
(
aiAlgid
)
...
...
@@ -297,8 +297,8 @@ static inline void reverse_bytes(BYTE *pbData, DWORD dwLen) {
}
}
BOOL
encrypt_block_impl
(
ALG_ID
aiAlgid
,
DWORD
dwKeySpec
,
KEY_CONTEXT
*
pKeyContext
,
CONST
BYTE
*
in
,
BYTE
*
out
,
DWORD
enc
)
BOOL
encrypt_block_impl
(
ALG_ID
aiAlgid
,
DWORD
dwKeySpec
,
KEY_CONTEXT
*
pKeyContext
,
const
BYTE
*
in
,
BYTE
*
out
,
DWORD
enc
)
{
unsigned
long
inlen
,
outlen
;
BYTE
*
in_reversed
=
NULL
;
...
...
@@ -406,7 +406,7 @@ BOOL export_public_key_impl(BYTE *pbDest, const KEY_CONTEXT *pKeyContext, DWORD
return
TRUE
;
}
BOOL
import_public_key_impl
(
CONST
BYTE
*
pbSrc
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
BOOL
import_public_key_impl
(
const
BYTE
*
pbSrc
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
dwPubExp
)
{
BYTE
*
pbTemp
;
...
...
@@ -481,7 +481,7 @@ BOOL export_private_key_impl(BYTE *pbDest, const KEY_CONTEXT *pKeyContext, DWORD
return
TRUE
;
}
BOOL
import_private_key_impl
(
CONST
BYTE
*
pbSrc
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
BOOL
import_private_key_impl
(
const
BYTE
*
pbSrc
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
dwDataLen
,
DWORD
dwPubExp
)
{
BYTE
*
pbTemp
,
*
pbBigNum
;
...
...
dlls/rsaenh/implglue.h
View file @
1a3137fa
...
...
@@ -73,31 +73,31 @@ typedef union tagKEY_CONTEXT {
}
KEY_CONTEXT
;
BOOL
init_hash_impl
(
ALG_ID
aiAlgid
,
HASH_CONTEXT
*
pHashContext
)
DECLSPEC_HIDDEN
;
BOOL
update_hash_impl
(
ALG_ID
aiAlgid
,
HASH_CONTEXT
*
pHashContext
,
CONST
BYTE
*
pbData
,
BOOL
update_hash_impl
(
ALG_ID
aiAlgid
,
HASH_CONTEXT
*
pHashContext
,
const
BYTE
*
pbData
,
DWORD
dwDataLen
)
DECLSPEC_HIDDEN
;
BOOL
finalize_hash_impl
(
ALG_ID
aiAlgid
,
HASH_CONTEXT
*
pHashContext
,
BYTE
*
pbHashValue
)
DECLSPEC_HIDDEN
;
BOOL
duplicate_hash_impl
(
ALG_ID
aiAlgid
,
CONST
HASH_CONTEXT
*
pSrcHashContext
,
BOOL
duplicate_hash_impl
(
ALG_ID
aiAlgid
,
const
HASH_CONTEXT
*
pSrcHashContext
,
HASH_CONTEXT
*
pDestHashContext
)
DECLSPEC_HIDDEN
;
BOOL
new_key_impl
(
ALG_ID
aiAlgid
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
)
DECLSPEC_HIDDEN
;
BOOL
free_key_impl
(
ALG_ID
aiAlgid
,
KEY_CONTEXT
*
pKeyContext
)
DECLSPEC_HIDDEN
;
BOOL
setup_key_impl
(
ALG_ID
aiAlgid
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
dwEffectiveKeyLen
,
DWORD
dwSaltLen
,
BYTE
*
abKeyValue
)
DECLSPEC_HIDDEN
;
BOOL
duplicate_key_impl
(
ALG_ID
aiAlgid
,
CONST
KEY_CONTEXT
*
pSrcKeyContext
,
BOOL
duplicate_key_impl
(
ALG_ID
aiAlgid
,
const
KEY_CONTEXT
*
pSrcKeyContext
,
KEY_CONTEXT
*
pDestKeyContext
)
DECLSPEC_HIDDEN
;
/* dwKeySpec is optional for symmetric key algorithms */
BOOL
encrypt_block_impl
(
ALG_ID
aiAlgid
,
DWORD
dwKeySpec
,
KEY_CONTEXT
*
pKeyContext
,
CONST
BYTE
*
pbIn
,
BYTE
*
pbOut
,
DWORD
enc
)
DECLSPEC_HIDDEN
;
BOOL
encrypt_block_impl
(
ALG_ID
aiAlgid
,
DWORD
dwKeySpec
,
KEY_CONTEXT
*
pKeyContext
,
const
BYTE
*
pbIn
,
BYTE
*
pbOut
,
DWORD
enc
)
DECLSPEC_HIDDEN
;
BOOL
encrypt_stream_impl
(
ALG_ID
aiAlgid
,
KEY_CONTEXT
*
pKeyContext
,
BYTE
*
pbInOut
,
DWORD
dwLen
)
DECLSPEC_HIDDEN
;
BOOL
export_public_key_impl
(
BYTE
*
pbDest
,
const
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
*
pdwPubExp
)
DECLSPEC_HIDDEN
;
BOOL
import_public_key_impl
(
CONST
BYTE
*
pbSrc
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
BOOL
import_public_key_impl
(
const
BYTE
*
pbSrc
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
dwPubExp
)
DECLSPEC_HIDDEN
;
BOOL
export_private_key_impl
(
BYTE
*
pbDest
,
const
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
*
pdwPubExp
)
DECLSPEC_HIDDEN
;
BOOL
import_private_key_impl
(
CONST
BYTE
*
pbSrc
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
BOOL
import_private_key_impl
(
const
BYTE
*
pbSrc
,
KEY_CONTEXT
*
pKeyContext
,
DWORD
dwKeyLen
,
DWORD
dwDataLen
,
DWORD
dwPubExp
)
DECLSPEC_HIDDEN
;
BOOL
gen_rand_impl
(
BYTE
*
pbBuffer
,
DWORD
dwLen
)
DECLSPEC_HIDDEN
;
...
...
dlls/rsaenh/rsaenh.c
View file @
1a3137fa
This diff is collapsed.
Click to expand it.
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