123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #include <wolfssl/wolfcrypt/settings.h>
- #include <wolfssl/wolfcrypt/error-crypt.h>
- #include <wolfssl/wolfcrypt/logging.h>
- #include <wolfcrypt/benchmark/benchmark.h>
- #include <stdio.h>
- #ifndef NO_CRYPT_BENCHMARK
- typedef struct func_args {
- int argc;
- char** argv;
- int return_code;
- } func_args;
- static func_args args = { 0 } ;
- #endif
- int main(void)
- {
- int ret;
- #ifndef NO_CRYPT_BENCHMARK
- wolfCrypt_Init();
- printf("\nBenchmark Test\n");
- benchmark_test(&args);
- ret = args.return_code;
- printf("Benchmark Test: Return code %d\n", ret);
- wolfCrypt_Cleanup();
- #else
- ret = NOT_COMPILED_IN;
- #endif
- return ret;
- }
|