/*
- * Copyright (c) 2009, 2010 Nicira Networks.
+ * Copyright (c) 2009, 2010, 2013, 2014 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
#include <config.h>
-#include <ctype.h>
+#undef NDEBUG
#include "aes128.h"
+#include <ctype.h>
+#include "ovstest.h"
#include "util.h"
static void
return;
error:
- ovs_fatal(0, "\"%s\" is not exactly %zu hex digits", input, n * 2);
+ ovs_fatal(0, "\"%s\" is not exactly %"PRIuSIZE" hex digits", input, n * 2);
}
-int
-main(int argc, char *argv[])
+static void
+test_aes128_main(int argc, char *argv[])
{
struct aes128 aes;
uint8_t plaintext[16];
printf("%02x", ciphertext[i]);
}
putchar('\n');
-
- return 0;
}
+
+OVSTEST_REGISTER("test-aes128", test_aes128_main);