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
c9842d2c
Commit
c9842d2c
authored
Dec 14, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Make some data const and static.
parent
8c3fdfea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
17 deletions
+10
-17
mpi.c
dlls/rsaenh/mpi.c
+8
-11
rsaenh.c
dlls/rsaenh/rsaenh.c
+2
-2
tomcrypt.h
dlls/rsaenh/tomcrypt.h
+0
-4
No files found.
dlls/rsaenh/mpi.c
View file @
c9842d2c
...
...
@@ -31,6 +31,14 @@
#include <stdarg.h>
#include "tomcrypt.h"
/* Known optimal configurations
CPU /Compiler /MUL CUTOFF/SQR CUTOFF
-------------------------------------------------------------
Intel P4 Northwood /GCC v3.4.1 / 88/ 128/LTM 0.32 ;-)
*/
static
const
int
KARATSUBA_MUL_CUTOFF
=
88
,
/* Min. number of digits before Karatsuba multiplication is used. */
KARATSUBA_SQR_CUTOFF
=
128
;
/* Min. number of digits before Karatsuba squaring is used. */
/* computes the modular inverse via binary extended euclidean algorithm,
* that is c = 1/a mod b
*
...
...
@@ -4409,14 +4417,3 @@ s_mp_sub (mp_int * a, mp_int * b, mp_int * c)
mp_clamp
(
c
);
return
MP_OKAY
;
}
/* Known optimal configurations
CPU /Compiler /MUL CUTOFF/SQR CUTOFF
-------------------------------------------------------------
Intel P4 Northwood /GCC v3.4.1 / 88/ 128/LTM 0.32 ;-)
*/
int
KARATSUBA_MUL_CUTOFF
=
88
,
/* Min. number of digits before Karatsuba multiplication is used. */
KARATSUBA_SQR_CUTOFF
=
128
;
/* Min. number of digits before Karatsuba squaring is used. */
dlls/rsaenh/rsaenh.c
View file @
c9842d2c
...
...
@@ -156,7 +156,7 @@ typedef struct tagKEYCONTAINER
*/
#define RSAENH_MAX_ENUMALGS 20
#define RSAENH_PCT1_SSL2_SSL3_TLS1 (CRYPT_FLAG_PCT1|CRYPT_FLAG_SSL2|CRYPT_FLAG_SSL3|CRYPT_FLAG_TLS1)
PROV_ENUMALGS_EX
aProvEnumAlgsEx
[
4
][
RSAENH_MAX_ENUMALGS
+
1
]
=
static
const
PROV_ENUMALGS_EX
aProvEnumAlgsEx
[
4
][
RSAENH_MAX_ENUMALGS
+
1
]
=
{
{
{
CALG_RC2
,
40
,
40
,
56
,
0
,
4
,
"RC2"
,
24
,
"RSA Data Security's RC2"
},
...
...
@@ -395,7 +395,7 @@ static inline BOOL copy_param(
* Failure: NULL (algid not supported)
*/
static
inline
const
PROV_ENUMALGS_EX
*
get_algid_info
(
HCRYPTPROV
hProv
,
ALG_ID
algid
)
{
PROV_ENUMALGS_EX
*
iterator
;
const
PROV_ENUMALGS_EX
*
iterator
;
KEYCONTAINER
*
pKeyContainer
;
if
(
!
lookup_handle
(
&
handle_table
,
hProv
,
RSAENH_MAGIC_CONTAINER
,
(
OBJECTHDR
**
)
&
pKeyContainer
))
{
...
...
dlls/rsaenh/tomcrypt.h
View file @
c9842d2c
...
...
@@ -204,10 +204,6 @@ typedef ulong64 mp_word;
typedef
int
mp_err
;
/* you'll have to tune these... */
extern
int
KARATSUBA_MUL_CUTOFF
,
KARATSUBA_SQR_CUTOFF
;
/* define this to use lower memory usage routines (exptmods mostly) */
/* #define MP_LOW_MEM */
...
...
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