aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/bitsliced-aes/utils.h
blob: 167f0d957f158f233cf5d39104cd5d321232e7fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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