summaryrefslogtreecommitdiff
path: root/strciphr.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-12 12:04:37 -0400
committerJeffrey Walton <noloader@gmail.com>2018-07-12 12:04:37 -0400
commit90e7b858148733bdd680586529c3681231101648 (patch)
treedb66cb9907c10d5643488666cf1ab74f7a6a7b2a /strciphr.h
parent40d70375a99312e0b6a486804a4aa0a6a823510d (diff)
downloadcryptopp-git-90e7b858148733bdd680586529c3681231101648.tar.gz
Update documentation
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 9198b55a..b726d0a7 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 (this->m_buffer.data() + this->m_buffer.size());}
+ inline byte * KeystreamBufferEnd() {return (PtrAdd(this->m_buffer.data(), this->m_buffer.size()));}
SecByteBlock m_buffer;
size_t m_leftOver;