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

29
types.cpp Normal file
View File

@@ -0,0 +1,29 @@
#include "types.hpp"
aes_col::aes_col()
{
this->column[0] = 0;
this->column[1] = 0;
this->column[2] = 0;
this->column[3] = 0;
}
bool aes_col::operator==(const aes_col &other) const
{
for (int i = 0;i < 4;i++)
{
if (this->column[i] != other.column[i])
return false;
}
return true;
}
bool aes_col::operator<(const aes_col &other) const
{
for (int i = 0;i < 4;i++)
{
if (this->column[i] < other.column[i])
return true;
}
return false;
}