diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-07-12 08:29:46 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-07-12 08:29:46 -0400 |
commit | bbf9a109f268d59185713b64b74e6b55ccfb1571 (patch) | |
tree | ddd91fbb4bd79e387480adfbe08200d89247e700 /strciphr.h | |
parent | 6434ec597de38cad9762b8d6fff61ddac45aab72 (diff) | |
download | cryptopp-git-bbf9a109f268d59185713b64b74e6b55ccfb1571.tar.gz |
Increase use of ptrdiff_t when performing pointer math
This fixes the incorrect result with CFB mode on A-32 in CFB_CipherTemplate<BASE>::ProcessData
Diffstat (limited to 'strciphr.h')
-rw-r--r-- | strciphr.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;
|