#import "AppDelegate.h"
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfcrypt/benchmark/benchmark.h>
#include <wolfcrypt/test/test.h>
@interface AppDelegate ()
@end
@implementation AppDelegate
typedef struct func_args {
int argc;
char** argv;
int return_code;
} func_args;
extern int bench_tls(void);
static func_args args = { 0 } ;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
#if 1
printf("\nwolfCrypt Test:\n");
wolfcrypt_test(&args);
printf("wolfCrypt Test: Return code %d\n", args.return_code);
#else#endif
#if 1
printf("\nwolfCrypt Benchmark:\n");
benchmark_test(&args);
printf("wolfCrypt Benchmark: Return code %d\n", args.return_code);
#else#endif
#if 0#endif
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
}
- (void)applicationWillTerminate:(UIApplication *)application {
}
@end