projects
/
aes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add PDF target to Makefile
[aes.git]
/
aes.cpp
diff --git
a/aes.cpp
b/aes.cpp
index
883d3b3
..
dff959e
100644
(file)
--- 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)
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);
state.at(j*Nb+i) ^= wBytes.at(j);
- }
}
}
}
}