Do some cleanup

This commit is contained in:
2019-10-15 19:10:09 +02:00
parent 8600cf9f3c
commit 8875e75439
2 changed files with 1 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
#include "aes.hpp" #include "aes.hpp"
#include <cstring> #include <cstring>
#include <iostream>
#include "profiler.hpp" #include "profiler.hpp"
@@ -138,7 +137,7 @@ uint32_t AES::roundkey_g(uint32_t last_roundkey, uint8_t round)
uint8_t *last = (uint8_t*) &last_roundkey; uint8_t *last = (uint8_t*) &last_roundkey;
uint8_t *next = (uint8_t*) &result; uint8_t *next = (uint8_t*) &result;
next[3] = sbox[last[0]]; next[3] = sbox[last[0]];
next[0] = sbox[last[1]] ^ rc[round]; // TODO Check round next[0] = sbox[last[1]] ^ rc[round];
next[1] = sbox[last[2]]; next[1] = sbox[last[2]];
next[2] = sbox[last[3]]; next[2] = sbox[last[3]];
return result; return result;

View File

@@ -27,7 +27,6 @@ string prompt(char separator = '>')
void print_help() void print_help()
{ {
PROFILER_RECORD; PROFILER_RECORD;
// TODO Verify whether there are more/less commands
cout << "The following commands are available: help, login, register, exit" << endl; cout << "The following commands are available: help, login, register, exit" << endl;
} }
@@ -76,7 +75,6 @@ void login()
print_flag(); print_flag();
} }
#include <iomanip>
void register_user() void register_user()
{ {
PROFILER_RECORD; PROFILER_RECORD;