29 lines
475 B
C++
29 lines
475 B
C++
#ifndef TYPES_HPP_
|
|
#define TYPES_HPP_
|
|
|
|
#include <vector>
|
|
#include <cstdint>
|
|
|
|
class trace
|
|
{
|
|
public:
|
|
//uint8_t plaintext[16];
|
|
uint8_t ciphertext[16];
|
|
uint8_t faultytext[16];
|
|
};
|
|
|
|
class aes_col
|
|
{
|
|
public:
|
|
uint8_t column[4];
|
|
aes_col();
|
|
bool operator==(const aes_col &) const;
|
|
bool operator<(const aes_col &) const;
|
|
};
|
|
|
|
typedef std::vector<trace> traces_vector_t;
|
|
typedef std::vector<aes_col> aes_col_vector_t;
|
|
typedef std::vector<aes_col_vector_t> aes_col_matrix_t;
|
|
|
|
#endif
|