aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/seed/seed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/seed/seed.cpp')
-rw-r--r--src/block/seed/seed.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/block/seed/seed.cpp b/src/block/seed/seed.cpp
index 408220013..fb8708214 100644
--- a/src/block/seed/seed.cpp
+++ b/src/block/seed/seed.cpp
@@ -111,13 +111,15 @@ void SEED::key_schedule(const byte key[], size_t)
0x779B99E3, 0xEF3733C6, 0xDE6E678D, 0xBCDCCF1B
};
- SecureVector<u32bit> WK(4);
+ secure_vector<u32bit> WK(4);
for(size_t i = 0; i != 4; ++i)
WK[i] = load_be<u32bit>(key, i);
G_FUNC G;
+ K.resize(32);
+
for(size_t i = 0; i != 16; i += 2)
{
K[2*i ] = G(WK[0] + WK[2] - RC[i]);