summaryrefslogtreecommitdiff
path: root/strciphr.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2002-12-06 22:02:46 +0000
committerweidai <weidai11@users.noreply.github.com>2002-12-06 22:02:46 +0000
commita28627a6a55d71c90961e94941747933dc3819a8 (patch)
treedf9cff822523331cad30742ddb34056544c7a80d /strciphr.cpp
parent310b7b96e10bd91654264d2c7c3a753d27b3c4c3 (diff)
downloadcryptopp-git-a28627a6a55d71c90961e94941747933dc3819a8.tar.gz
add script-driven testing
Diffstat (limited to 'strciphr.cpp')
-rw-r--r--strciphr.cpp2
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>