aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/bitsliced-aes/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/bitsliced-aes/utils.h')
-rw-r--r--test/monniaux/bitsliced-aes/utils.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/monniaux/bitsliced-aes/utils.h b/test/monniaux/bitsliced-aes/utils.h
new file mode 100644
index 00000000..167f0d95
--- /dev/null
+++ b/test/monniaux/bitsliced-aes/utils.h
@@ -0,0 +1,20 @@
+#ifndef _UTILS_H_
+#define _UTILS_H_
+
+#include <stdint.h>
+#include "bs.h"
+
+#ifndef TEST_FOOTPRINT
+void dump_hex(uint8_t * h, int len);
+void dump_word(word_t * h, int len);
+void dump_block(word_t * h, int len);
+#else
+#define dump_hex(h,len) (0)
+#define dump_word(h,len) (0)
+#define dump_block(h,len) (0)
+#endif
+
+#define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
+#define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
+
+#endif