summaryrefslogtreecommitdiff
path: root/strciphr.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-12 09:43:18 -0400
committerJeffrey Walton <noloader@gmail.com>2018-07-12 09:43:18 -0400
commited143608a8220cd196527b2881ba745d00330d87 (patch)
treea19e1d9cd99ced640e201192001b8e7a48c1a56e /strciphr.h
parent25179e00d3c362de7286b6e89b5d6b9f2541487f (diff)
downloadcryptopp-git-ed143608a8220cd196527b2881ba745d00330d87.tar.gz
Revert "Increase use of ptrdiff_t when performing pointer math"
This reverts commit bbf9a109f268. It did not fix A-32. Something got crossed in my test case.
Diffstat (limited to 'strciphr.h')
-rw-r--r--strciphr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/strciphr.h b/strciphr.h
index b726d0a7..9198b55a 100644
--- a/strciphr.h
+++ b/strciphr.h
@@ -376,7 +376,7 @@ protected:
unsigned int GetBufferByteSize(const PolicyInterface &policy) const {return policy.GetBytesPerIteration() * policy.GetIterationsToBuffer();}
inline byte * KeystreamBufferBegin() {return this->m_buffer.data();}
- inline byte * KeystreamBufferEnd() {return (PtrAdd(this->m_buffer.data(), this->m_buffer.size()));}
+ inline byte * KeystreamBufferEnd() {return (this->m_buffer.data() + this->m_buffer.size());}
SecByteBlock m_buffer;
size_t m_leftOver;