This commit is contained in:
2019-07-14 02:13:37 +02:00
commit 3ff595e5e8
6 changed files with 418 additions and 0 deletions

28
types.hpp Normal file
View File

@@ -0,0 +1,28 @@
#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