From 8875e75439789cce3de13383e6463a58ffe6fa0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Tue, 15 Oct 2019 19:10:09 +0200 Subject: [PATCH] Do some cleanup --- aes.cpp | 3 +-- main.cpp | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/aes.cpp b/aes.cpp index c8006cb..4f1070d 100644 --- a/aes.cpp +++ b/aes.cpp @@ -1,7 +1,6 @@ #include "aes.hpp" #include -#include #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 *next = (uint8_t*) &result; 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[2] = sbox[last[3]]; return result; diff --git a/main.cpp b/main.cpp index 8e68875..37818ff 100644 --- a/main.cpp +++ b/main.cpp @@ -27,7 +27,6 @@ string prompt(char separator = '>') void print_help() { PROFILER_RECORD; - // TODO Verify whether there are more/less commands cout << "The following commands are available: help, login, register, exit" << endl; } @@ -76,7 +75,6 @@ void login() print_flag(); } -#include void register_user() { PROFILER_RECORD;