add fixed point ecc cache, --enable-fpecc, add locking down to crypt level next

This commit is contained in:
toddouska 2013-09-06 14:24:31 -07:00
parent 08c9f61f16
commit 46be3b8508
4 changed files with 1444 additions and 68 deletions

View File

@ -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)],

View File

@ -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];

File diff suppressed because it is too large Load Diff

View File

@ -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 */