summaryrefslogtreecommitdiff
path: root/modes.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2007-05-04 15:37:46 +0000
committerweidai <weidai11@users.noreply.github.com>2007-05-04 15:37:46 +0000
commitf41245df6fb9b85574260eca9cd32777e8ab5136 (patch)
tree5c790bf6c465f48e0dca552dfff508cda8f7235f /modes.cpp
parentb1be555667f2ed9aea1a64014d81d714bc0d402a (diff)
downloadcryptopp-git-f41245df6fb9b85574260eca9cd32777e8ab5136.tar.gz
reduce risk of reusing random numbers after VM state rollback
Diffstat (limited to 'modes.cpp')
-rw-r--r--modes.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/modes.cpp b/modes.cpp
index b51afe9b..5605922a 100644
--- a/modes.cpp
+++ b/modes.cpp
@@ -24,15 +24,6 @@ void Modes_TestInstantiations()
}
#endif
-void CipherModeBase::GetNextIV(byte *IV)
-{
- if (!IsForwardTransformation())
- throw NotImplemented("CipherModeBase: GetNextIV() must be called on an encryption object");
-
- m_cipher->ProcessBlock(m_register);
- memcpy(IV, m_register, BlockSize());
-}
-
void CTR_ModePolicy::SeekToIteration(lword iterationCount)
{
int carry=0;
@@ -45,11 +36,6 @@ void CTR_ModePolicy::SeekToIteration(lword iterationCount)
}
}
-void CTR_ModePolicy::CipherGetNextIV(byte *IV)
-{
- IncrementCounterByOne(IV, m_counterArray, BlockSize());
-}
-
inline void CTR_ModePolicy::ProcessMultipleBlocks(byte *output, const byte *input, size_t n)
{
unsigned int s = BlockSize(), j = 0;