int main2(int argc, char** argv) { #ifndef NO_AES bench_aes(); #endif bench_arc4(); #ifndef NO_HC128 bench_hc128(); #endif #ifndef NO_RABBIT bench_rabbit(); #endif #ifndef NO_DES3 bench_des(); #endif printf("\n"); bench_md5(); bench_sha(); #ifndef NO_SHA256 bench_sha256(); #endif printf("\n"); bench_rsa(); #ifndef NO_DH bench_dh(); #endif return 0; }
int main(int argc, char** argv) { (void)argc; (void)argv; #else int benchmark_test(void *args) { #endif #if defined(DEBUG_CYASSL) && !defined(HAVE_VALGRIND) CyaSSL_Debugging_ON(); #endif #ifdef HAVE_CAVIUM int ret = OpenNitroxDevice(CAVIUM_DIRECT, CAVIUM_DEV_ID); if (ret != 0) { printf("Cavium OpenNitroxDevice failed\n"); exit(-1); } #endif /* HAVE_CAVIUM */ #ifndef NO_AES bench_aes(0); bench_aes(1); #endif #ifdef HAVE_AESGCM bench_aesgcm(); #endif #ifdef CYASSL_AES_COUNTER bench_aesctr(); #endif #ifdef HAVE_AESCCM bench_aesccm(); #endif #ifdef HAVE_CAMELLIA bench_camellia(); #endif #ifndef NO_RC4 bench_arc4(); #endif #ifdef HAVE_HC128 bench_hc128(); #endif #ifndef NO_RABBIT bench_rabbit(); #endif #ifdef HAVE_CHACHA bench_chacha(); #endif #ifndef NO_DES3 bench_des(); #endif printf("\n"); #ifndef NO_MD5 bench_md5(); #endif #ifdef HAVE_POLY1305 bench_poly1305(); #endif #ifndef NO_SHA bench_sha(); #endif #ifndef NO_SHA256 bench_sha256(); #endif #ifdef CYASSL_SHA384 bench_sha384(); #endif #ifdef CYASSL_SHA512 bench_sha512(); #endif #ifdef CYASSL_RIPEMD bench_ripemd(); #endif #ifdef HAVE_BLAKE2 bench_blake2(); #endif printf("\n"); #ifndef NO_RSA bench_rsa(); #endif #ifdef HAVE_NTRU bench_ntru(); #endif #ifndef NO_DH bench_dh(); #endif #if defined(CYASSL_KEY_GEN) && !defined(NO_RSA) bench_rsaKeyGen(); #endif #ifdef HAVE_NTRU bench_ntruKeyGen(); #endif #ifdef HAVE_ECC bench_eccKeyGen(); bench_eccKeyAgree(); #if defined(FP_ECC) ecc_fp_free(); #endif #endif #ifdef HAVE_ECC25519 bench_ecc25519KeyGen(); bench_ecc25519KeyAgree(); #endif return 0; }
/* * Main driver for CTaoCrypt benchmarks. */ int main(int argc, char** argv) { volatile int i ; int j ; init_serial() ; /* initialize PIC32MZ serial I/O */ SYSTEMConfigPerformance(80000000); DBINIT(); current_time(1) ; for(j=0; j<100; j++) { for(i=0; i<100000; i++) ; printf("%f\n", current_time(0)) ; } printf("wolfCrypt Benchmark:\n"); #ifndef NO_AES bench_aes(0); bench_aes(1); #endif #ifdef HAVE_AESGCM bench_aesgcm(); #endif #ifndef NO_RC4 bench_arc4(); #endif #ifdef HAVE_HC128 bench_hc128(); #endif #ifndef NO_RABBIT bench_rabbit(); #endif #ifndef NO_DES3 bench_des(); #endif printf("\n"); #ifndef NO_MD5 bench_md5(); #endif bench_sha(); #ifndef NO_SHA256 bench_sha256(); #endif #ifdef CYASSL_SHA512 bench_sha512(); #endif #ifdef CYASSL_RIPEMD bench_ripemd(); #endif printf("\n"); #ifndef NO_RSA bench_rsa(); #endif #ifndef NO_DH bench_dh(); #endif #if defined(CYASSL_KEY_GEN) && !defined(NO_RSA) bench_rsaKeyGen(); #endif #ifdef HAVE_ECC bench_eccKeyGen(); bench_eccKeyAgree(); #endif printf("End of wolfCrypt Benchmark:\n"); return 0; }
int main(int argc, char** argv) { (void)argc; (void)argv; #else int benchmark_test(void *args) { #endif #ifdef HAVE_CAVIUM int ret = OpenNitroxDevice(CAVIUM_DIRECT, CAVIUM_DEV_ID); if (ret != 0) { printf("Cavium OpenNitroxDevice failed\n"); exit(-1); } #endif /* HAVE_CAVIUM */ #ifndef NO_AES bench_aes(0); bench_aes(1); #endif #ifdef HAVE_AESGCM bench_aesgcm(); #endif #ifdef HAVE_AESCCM bench_aesccm(); #endif #ifdef HAVE_CAMELLIA bench_camellia(); #endif #ifndef NO_RC4 bench_arc4(); #endif #ifdef HAVE_HC128 bench_hc128(); #endif #ifndef NO_RABBIT bench_rabbit(); #endif #ifndef NO_DES3 bench_des(); #endif printf("\n"); #ifndef NO_MD5 bench_md5(); #endif #ifndef NO_SHA bench_sha(); #endif #ifndef NO_SHA256 bench_sha256(); #endif #ifdef CYASSL_SHA512 bench_sha512(); #endif #ifdef CYASSL_RIPEMD bench_ripemd(); #endif #ifdef HAVE_BLAKE2 bench_blake2(); #endif printf("\n"); #ifndef NO_RSA bench_rsa(); #endif #ifndef NO_DH bench_dh(); #endif #if defined(CYASSL_KEY_GEN) && !defined(NO_RSA) bench_rsaKeyGen(); #endif #ifdef HAVE_ECC bench_eccKeyGen(); bench_eccKeyAgree(); #endif return 0; }
/* * Main driver for CTaoCrypt benchmarks. */ int main(int argc, char** argv) { SYSTEMConfigPerformance(80000000); DBINIT(); printf("CTaoCrypt Benchmark:\n"); #ifndef NO_AES bench_aes(0); bench_aes(1); #endif #ifdef HAVE_AESGCM bench_aesgcm(); #endif #ifndef NO_RC4 bench_arc4(); #endif #ifdef HAVE_HC128 bench_hc128(); #endif #ifndef NO_RABBIT bench_rabbit(); #endif #ifndef NO_DES3 bench_des(); #endif printf("\n"); #ifndef NO_MD5 bench_md5(); #endif bench_sha(); #ifndef NO_SHA256 bench_sha256(); #endif #ifdef CYASSL_SHA512 bench_sha512(); #endif #ifdef CYASSL_RIPEMD bench_ripemd(); #endif printf("\n"); #ifndef NO_RSA bench_rsa(); #endif #ifndef NO_DH bench_dh(); #endif #if defined(CYASSL_KEY_GEN) && !defined(NO_RSA) bench_rsaKeyGen(); #endif #ifdef HAVE_ECC bench_eccKeyGen(); bench_eccKeyAgree(); #endif return 0; }
int main(int argc, char** argv) { (void)argc; (void)argv; #ifndef NO_AES bench_aes(0); bench_aes(1); #endif #ifdef HAVE_AESGCM bench_aesgcm(); #endif #ifndef NO_RC4 bench_arc4(); #endif #ifdef HAVE_HC128 bench_hc128(); #endif #ifndef NO_RABBIT bench_rabbit(); #endif #ifndef NO_DES3 bench_des(); #endif printf("\n"); #ifndef NO_MD5 bench_md5(); #endif bench_sha(); #ifndef NO_SHA256 bench_sha256(); #endif #ifdef CYASSL_SHA512 bench_sha512(); #endif #ifdef CYASSL_RIPEMD bench_ripemd(); #endif printf("\n"); #ifndef NO_RSA bench_rsa(); #endif #ifndef NO_DH bench_dh(); #endif #if defined(CYASSL_KEY_GEN) && !defined(NO_RSA) bench_rsaKeyGen(); #endif #ifdef HAVE_ECC bench_eccKeyGen(); bench_eccKeyAgree(); #endif return 0; }