summaryrefslogtreecommitdiff
path: root/modes.cpp
diff options
context:
space:
mode:
authorZireael <Zireael-N@users.noreply.github.com>2015-10-26 05:11:59 +0300
committerZireael <Zireael-N@users.noreply.github.com>2015-10-26 05:11:59 +0300
commit8134f2cd502e457201d65f1dc557268ba13e3663 (patch)
treecb095995750613538772d9b1e30ce329ea8d53a6 /modes.cpp
parentaff51055698873166c93d83ce09578d2ec613e64 (diff)
downloadcryptopp-git-8134f2cd502e457201d65f1dc557268ba13e3663.tar.gz
Remove implementation of ResizeBuffer() from headers
Fixes issue #45
Diffstat (limited to 'modes.cpp')
-rw-r--r--modes.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/modes.cpp b/modes.cpp
index dee0f30f..d1b95ab4 100644
--- a/modes.cpp
+++ b/modes.cpp
@@ -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