From bde78677de357f04fd8bb6eac29a51433aa8a616 Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Sat, 3 Nov 2007 16:47:50 -0700 Subject: [PATCH] Update comments in aes.hpp This removes some redundant information from the comments in the aes.hpp header file. Any C++ user should know that class constants can be set by the constructor only, and then never again at runtime. Signed-off-by: Ira W. Snyder --- aes.hpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/aes.hpp b/aes.hpp index cbbb730..678b689 100644 --- a/aes.hpp +++ b/aes.hpp @@ -28,20 +28,13 @@ class AES 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; -- 2.25.1