diff options
Diffstat (limited to 'src/modes/cbc')
-rw-r--r-- | src/modes/cbc/cbc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes/cbc/cbc.cpp b/src/modes/cbc/cbc.cpp index f26d4d6cf..fb7ae8f90 100644 --- a/src/modes/cbc/cbc.cpp +++ b/src/modes/cbc/cbc.cpp @@ -90,7 +90,7 @@ CBC_Decryption::CBC_Decryption(BlockCipher* ciph, { if(!padder->valid_blocksize(BLOCK_SIZE)) throw Invalid_Block_Size(name(), padder->name()); - temp.create(BLOCK_SIZE); + temp.resize(BLOCK_SIZE); } /* @@ -105,7 +105,7 @@ CBC_Decryption::CBC_Decryption(BlockCipher* ciph, { if(!padder->valid_blocksize(BLOCK_SIZE)) throw Invalid_Block_Size(name(), padder->name()); - temp.create(BLOCK_SIZE); + temp.resize(BLOCK_SIZE); set_key(key); set_iv(iv); } |