diff options
author | weidai <weidai11@users.noreply.github.com> | 2002-12-06 22:02:46 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2002-12-06 22:02:46 +0000 |
commit | a28627a6a55d71c90961e94941747933dc3819a8 (patch) | |
tree | df9cff822523331cad30742ddb34056544c7a80d /strciphr.cpp | |
parent | 310b7b96e10bd91654264d2c7c3a753d27b3c4c3 (diff) | |
download | cryptopp-git-a28627a6a55d71c90961e94941747933dc3819a8.tar.gz |
add script-driven testing
Diffstat (limited to 'strciphr.cpp')
-rw-r--r-- | strciphr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strciphr.cpp b/strciphr.cpp index 694d1587..78e1a3f0 100644 --- a/strciphr.cpp +++ b/strciphr.cpp @@ -16,7 +16,7 @@ byte AdditiveCipherTemplate<S>::GenerateByte() m_leftOver = policy.GetBytesPerIteration(); } - return KeystreamBufferEnd()[-m_leftOver--]; + return *(KeystreamBufferEnd()-m_leftOver--); } template <class S> |