diff options
author | weidai <weidai11@users.noreply.github.com> | 2007-05-04 15:37:46 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2007-05-04 15:37:46 +0000 |
commit | f41245df6fb9b85574260eca9cd32777e8ab5136 (patch) | |
tree | 5c790bf6c465f48e0dca552dfff508cda8f7235f /modes.cpp | |
parent | b1be555667f2ed9aea1a64014d81d714bc0d402a (diff) | |
download | cryptopp-git-f41245df6fb9b85574260eca9cd32777e8ab5136.tar.gz |
reduce risk of reusing random numbers after VM state rollback
Diffstat (limited to 'modes.cpp')
-rw-r--r-- | modes.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -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; |