Initial
This commit is contained in:
28
types.hpp
Normal file
28
types.hpp
Normal 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
|
||||
Reference in New Issue
Block a user