add fixed point ecc cache, --enable-fpecc, add locking down to crypt level next
This commit is contained in:
parent
08c9f61f16
commit
46be3b8508
13
configure.ac
13
configure.ac
@ -569,6 +569,19 @@ then
|
||||
fi
|
||||
|
||||
|
||||
# FP ECC, Fixed Point cache ECC
|
||||
AC_ARG_ENABLE([fpecc],
|
||||
[ --enable-fpecc Enable Fixed Point cache ECC (default: disabled)],
|
||||
[ ENABLED_FPECC=$enableval ],
|
||||
[ ENABLED_FPECC=no ]
|
||||
)
|
||||
|
||||
if test "$ENABLED_FPECC" = "yes"
|
||||
then
|
||||
AM_CFLAGS="$AM_CFLAGS -DFP_ECC"
|
||||
fi
|
||||
|
||||
|
||||
# PSK
|
||||
AC_ARG_ENABLE([psk],
|
||||
[ --enable-psk Enable PSK (default: disabled)],
|
||||
|
@ -909,7 +909,7 @@ void bench_eccKeyGen(void)
|
||||
ecc_key genKey;
|
||||
double start, total, each, milliEach;
|
||||
int i;
|
||||
const int genTimes = 5;
|
||||
const int genTimes = 100;
|
||||
|
||||
/* 256 bit */
|
||||
start = current_time(1);
|
||||
@ -933,7 +933,7 @@ void bench_eccKeyAgree(void)
|
||||
ecc_key genKey, genKey2;
|
||||
double start, total, each, milliEach;
|
||||
int i, ret;
|
||||
const int agreeTimes = 5;
|
||||
const int agreeTimes = 100;
|
||||
byte shared[1024];
|
||||
byte sig[1024];
|
||||
byte digest[32];
|
||||
|
1493
ctaocrypt/src/ecc.c
1493
ctaocrypt/src/ecc.c
File diff suppressed because it is too large
Load Diff
@ -97,6 +97,8 @@ CYASSL_API
|
||||
void ecc_init(ecc_key* key);
|
||||
CYASSL_API
|
||||
void ecc_free(ecc_key* key);
|
||||
CYASSL_API
|
||||
void ecc_fp_free(void);
|
||||
|
||||
|
||||
/* ASN key helpers */
|
||||
|
Loading…
Reference in New Issue
Block a user