1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #include <wolfssl/wolfcrypt/settings.h>
- #include <wolfcrypt/test/test.h>
- #include <wolfcrypt/benchmark/benchmark.h>
- #include <wolfssl/wolfcrypt/wc_port.h>
- #include "SEGGER_RTT.h"
- int main(void)
- {
- int ret;
- SEGGER_RTT_Init();
- if ((ret = wolfCrypt_Init()) != 0) {
- printf("wolfCrypt_Init failed %d\n", ret);
- return -1;
- }
- #ifndef NO_CRYPT_TEST
- printf("\nwolfCrypt Test Started\n");
- wolfcrypt_test(NULL);
- printf("\nwolfCrypt Test Completed\n");
- #endif
- #ifndef NO_CRYPT_BENCHMARK
- printf("\nBenchmark Test Started\n");
- benchmark_test(NULL);
- printf("\nBenchmark Test Completed\n");
- #endif
- if ((ret = wolfCrypt_Cleanup()) != 0) {
- printf("wolfCrypt_Cleanup failed %d\n", ret);
- return -1;
- }
- while(1) {
- __WFI();
- }
- return 0;
- }
|