diff options
author | Zireael <Zireael-N@users.noreply.github.com> | 2015-10-26 05:11:59 +0300 |
---|---|---|
committer | Zireael <Zireael-N@users.noreply.github.com> | 2015-10-26 05:11:59 +0300 |
commit | 8134f2cd502e457201d65f1dc557268ba13e3663 (patch) | |
tree | cb095995750613538772d9b1e30ce329ea8d53a6 /modes.cpp | |
parent | aff51055698873166c93d83ce09578d2ec613e64 (diff) | |
download | cryptopp-git-8134f2cd502e457201d65f1dc557268ba13e3663.tar.gz |
Remove implementation of ResizeBuffer() from headers
Fixes issue #45
Diffstat (limited to 'modes.cpp')
-rw-r--r-- | modes.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -149,6 +149,12 @@ void BlockOrientedCipherModeBase::UncheckedSetKey(const byte *key, unsigned int } } +void BlockOrientedCipherModeBase::ResizeBuffers() +{ + CipherModeBase::ResizeBuffers(); + m_buffer.New(BlockSize()); +} + void ECB_OneWay::ProcessData(byte *outString, const byte *inString, size_t length) { CRYPTOPP_ASSERT(length%BlockSize()==0); @@ -243,6 +249,12 @@ void CBC_CTS_Decryption::ProcessLastBlock(byte *outString, const byte *inString, } } +void CBC_Decryption::ResizeBuffers() +{ + BlockOrientedCipherModeBase::ResizeBuffers(); + m_temp.New(BlockSize()); +} + NAMESPACE_END #endif |