diff options
Diffstat (limited to 'src/block/square/square.cpp')
-rw-r--r-- | src/block/square/square.cpp | 7 |
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]); } /* |