#include <cstdio>
#include <string>
#include <iostream>
-using namespace std;
// Byte and Byte Array types
typedef unsigned char byte;
byteArray decrypt (const byteArray& ciphertext) const;
private:
- /* Block size in words -- Always constant in AES.
- *
- * We also might as well make this static and share it between
- * all instances of AES. */
+ /* Block size in words -- Always constant in AES. */
static const unsigned int Nb = 4;
- /* Key size in words -- can be 4, 6, or 8.
- *
- * Once it is set by the constructor, it will never change */
+ /* Key size in words -- can be 4, 6, or 8. */
const unsigned int Nk;
- /* Number of rounds -- depends on key size.
- *
- * Once it is set by the constructor, it will never change */
+ /* Number of rounds -- depends on key size. */
const unsigned int Nr;
wordArray keySchedule;