From 6ff9ea8f3eec811b821ea30283bf195f2dfc5595 Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" 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 --- 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 #include #include -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.25.1