diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2002-12-06 22:02:46 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2002-12-06 22:02:46 +0000 |
commit | a3f0af934e387ba259919f0b72b42120eef3bc5c (patch) | |
tree | df9cff822523331cad30742ddb34056544c7a80d /strciphr.cpp | |
parent | f8840dc745d13414205c944b2ffc0796837340f5 (diff) | |
download | cryptopp-a3f0af934e387ba259919f0b72b42120eef3bc5c.tar.gz |
add script-driven testing
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@24 57ff6487-cd31-0410-9ec3-f628ee90f5f0
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 694d158..78e1a3f 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> |