summaryrefslogtreecommitdiff
path: root/modes.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-12-03 00:32:07 -0500
committerJeffrey Walton <noloader@gmail.com>2016-12-03 00:32:07 -0500
commit40230dd3bf5400ec3fda20cc791fb05c7a1c5b62 (patch)
tree834a1ab74d205c54d55b801d5dc1ab949ebc5bca /modes.cpp
parent6eb2792bc26aebc83924e7e7be28c0444dca506c (diff)
downloadcryptopp-git-40230dd3bf5400ec3fda20cc791fb05c7a1c5b62.tar.gz
Removed MAINTAIN_BACKWARDS_COMPATIBILITY_562 (Issue 70)
Diffstat (limited to 'modes.cpp')
-rw-r--r--modes.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/modes.cpp b/modes.cpp
index 8441cd1f..5bd6af13 100644
--- a/modes.cpp
+++ b/modes.cpp
@@ -25,13 +25,10 @@ void Modes_TestInstantiations()
}
#endif
-// Thanks to Zireael, http://github.com/weidai11/cryptopp/pull/46
-#ifndef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
void CipherModeBase::ResizeBuffers()
{
m_register.New(m_cipher->BlockSize());
}
-#endif
void CFB_ModePolicy::Iterate(byte *output, const byte *input, CipherDir dir, size_t iterationCount)
{
@@ -163,14 +160,11 @@ void BlockOrientedCipherModeBase::UncheckedSetKey(const byte *key, unsigned int
}
}
-// Thanks to Zireael, http://github.com/weidai11/cryptopp/pull/46
-#ifndef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
void BlockOrientedCipherModeBase::ResizeBuffers()
{
CipherModeBase::ResizeBuffers();
m_buffer.New(BlockSize());
}
-#endif
void ECB_OneWay::ProcessData(byte *outString, const byte *inString, size_t length)
{
@@ -218,14 +212,11 @@ void CBC_CTS_Encryption::ProcessLastBlock(byte *outString, const byte *inString,
memcpy(outString, m_register, BlockSize());
}
-// Thanks to Zireael, http://github.com/weidai11/cryptopp/pull/46
-#ifndef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
void CBC_Decryption::ResizeBuffers()
{
BlockOrientedCipherModeBase::ResizeBuffers();
m_temp.New(BlockSize());
}
-#endif
void CBC_Decryption::ProcessData(byte *outString, const byte *inString, size_t length)
{