diff options
Diffstat (limited to 'src/modes/cts')
-rw-r--r-- | src/modes/cts/cts.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes/cts/cts.h b/src/modes/cts/cts.h index 9b17203f3..1a2cae44e 100644 --- a/src/modes/cts/cts.h +++ b/src/modes/cts/cts.h @@ -41,13 +41,13 @@ class BOTAN_DLL CTS_Decryption : public BlockCipherMode public: CTS_Decryption(BlockCipher* ciph) : BlockCipherMode(ciph, "CTS", ciph->BLOCK_SIZE, 0, 2) - { temp.create(BLOCK_SIZE); } + { temp.resize(BLOCK_SIZE); } CTS_Decryption(BlockCipher* ciph, const SymmetricKey& key, const InitializationVector& iv) : BlockCipherMode(ciph, "CTS", ciph->BLOCK_SIZE, 0, 2) - { set_key(key); set_iv(iv); temp.create(BLOCK_SIZE); } + { set_key(key); set_iv(iv); temp.resize(BLOCK_SIZE); } private: void write(const byte[], u32bit); void end_msg(); |