This is a couple of little fixes so that I can remove the
'using namespace std;' from aes.hpp.
Also, remove some old debugging code from aes.cpp.
Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
byteArray wBytes = word2bytes (w[i]);
for (j=0; j<Nb; ++j)
- {
- //std::printf ("state.at(%d) ^= wBytes.at(%d) -- %.2x ^ %.2x = %.2x\n", i*Nb+j, j, state.at (i*Nb+j), wBytes.at(j), state.at(i*Nb+j) ^ wBytes.at(j));
state.at(j*Nb+i) ^= wBytes.at(j);
- }
}
}
#include <cstdio>
#include <string>
#include <iostream>
-using namespace std;
// Byte and Byte Array types
typedef unsigned char byte;
int main (int argc, char *argv[])
{
- std::ifstream fin ("Problem3.out", ios::binary);
+ std::ifstream fin ("Problem3.out", std::ios::binary);
int i;
byteArray key;