aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/idea_sse2
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-06-21 14:31:08 +0000
committerlloyd <[email protected]>2010-06-21 14:31:08 +0000
commitb4fe5806546639fb78e630bdc5b323bf7988e9a1 (patch)
tree233dd4a61c587cb186d5dc5877dbfac53149897a /src/block/idea_sse2
parent928760016bae3887dedf1344d4b3d2e70155ef63 (diff)
In IDEA, Noekeon, Serpent, XTEA, provide and use ro accessor functions
for getting access to the key schedule, instead of giving the key schedule protected status, which is much harder tu audit.
Diffstat (limited to 'src/block/idea_sse2')
-rw-r--r--src/block/idea_sse2/idea_sse2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block/idea_sse2/idea_sse2.cpp b/src/block/idea_sse2/idea_sse2.cpp
index 0fe35112d..0948bf46a 100644
--- a/src/block/idea_sse2/idea_sse2.cpp
+++ b/src/block/idea_sse2/idea_sse2.cpp
@@ -198,7 +198,7 @@ void IDEA_SSE2::encrypt_n(const byte in[], byte out[], u32bit blocks) const
{
while(blocks >= 8)
{
- idea_op_8(in, out, this->EK);
+ idea_op_8(in, out, this->get_EK());
in += 8 * BLOCK_SIZE;
out += 8 * BLOCK_SIZE;
blocks -= 8;
@@ -214,7 +214,7 @@ void IDEA_SSE2::decrypt_n(const byte in[], byte out[], u32bit blocks) const
{
while(blocks >= 8)
{
- idea_op_8(in, out, this->DK);
+ idea_op_8(in, out, this->get_DK());
in += 8 * BLOCK_SIZE;
out += 8 * BLOCK_SIZE;
blocks -= 8;