diff options
Diffstat (limited to 'src/modes/modebase.cpp')
-rw-r--r-- | src/modes/modebase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes/modebase.cpp b/src/modes/modebase.cpp index b048862a4..59ee55a8a 100644 --- a/src/modes/modebase.cpp +++ b/src/modes/modebase.cpp @@ -20,8 +20,8 @@ BlockCipherMode::BlockCipherMode(BlockCipher* cipher_ptr, IV_METHOD(iv_meth), mode_name(cipher_mode_name) { cipher = cipher_ptr; - buffer.create(BUFFER_SIZE); - state.create(iv_size); + buffer.resize(BUFFER_SIZE); + state.resize(iv_size); position = 0; } |