From 6ff9ea8f3eec811b821ea30283bf195f2dfc5595 Mon Sep 17 00:00:00 2001
From: "Ira W. Snyder" <devel@irasnyder.com>
Date: Sat, 27 Oct 2007 14:10:53 -0700
Subject: [PATCH] Remove 'using namespace std;'

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>
---
 aes.cpp      | 3 ---
 aes.hpp      | 1 -
 problem3.cpp | 2 +-
 3 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/aes.cpp b/aes.cpp
index 883d3b3..dff959e 100644
--- a/aes.cpp
+++ b/aes.cpp
@@ -421,10 +421,7 @@ void AES::AddRoundKey (byteArray& state, const wordArray& w) const
 		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);
-		}
 	}
 }
 
diff --git a/aes.hpp b/aes.hpp
index 5d2acd8..cbbb730 100644
--- a/aes.hpp
+++ b/aes.hpp
@@ -5,7 +5,6 @@
 #include <cstdio>
 #include <string>
 #include <iostream>
-using namespace std;
 
 // Byte and Byte Array types
 typedef unsigned char byte;
diff --git a/problem3.cpp b/problem3.cpp
index df343bd..10651d8 100644
--- a/problem3.cpp
+++ b/problem3.cpp
@@ -4,7 +4,7 @@
 
 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;
-- 
2.34.1