aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/square/square.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-05-18 14:24:51 +0000
committerlloyd <[email protected]>2012-05-18 14:24:51 +0000
commitab5c922f0e2635dc0e45fc757b27be9f28986acb (patch)
treec21a18bbfb316196b1b13488ef05f184f12be9f0 /src/block/square/square.cpp
parent2c3dc93d6466a9215d585613fb55f5222ce70d10 (diff)
Remove all uses of MemoryRegion::copy outside of internal uses in
secmem.h. Mostly replaced by assign or copy_mem.
Diffstat (limited to 'src/block/square/square.cpp')
-rw-r--r--src/block/square/square.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/block/square/square.cpp b/src/block/square/square.cpp
index cd1865582..ff98c040e 100644
--- a/src/block/square/square.cpp
+++ b/src/block/square/square.cpp
@@ -160,6 +160,9 @@ void Square::key_schedule(const byte key[], size_t)
transform(&XEK[4*i]);
}
+ ME.resize(16);
+ MD.resize(16);
+
for(size_t i = 0; i != 4; ++i)
for(size_t j = 0; j != 4; ++j)
{
@@ -169,8 +172,8 @@ void Square::key_schedule(const byte key[], size_t)
MD[4*i+j+16] = get_byte(j, XEK[i ]);
}
- EK.copy(&XEK[4], 28);
- DK.copy(&XDK[4], 28);
+ EK.assign(&XEK[4], &XEK[36]);
+ DK.assign(&XDK[4], &XDK[36]);
}
/*