Do some cleanup
This commit is contained in:
3
aes.cpp
3
aes.cpp
@@ -1,7 +1,6 @@
|
||||
#include "aes.hpp"
|
||||
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
#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;
|
||||
|
||||
Reference in New Issue
Block a user