summaryrefslogtreecommitdiff
path: root/wake.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2009-10-31 21:18:37 +0000
committerweidai <weidai11@users.noreply.github.com>2009-10-31 21:18:37 +0000
commit2cb9074afdb6c10f686b863fc8354fdfa8206701 (patch)
treefdf273b985dfe798d49cebb63e32bae82f822651 /wake.cpp
parent43245166ca6dedbf0f9a67098877ab9d0519bbc0 (diff)
downloadcryptopp-git-2cb9074afdb6c10f686b863fc8354fdfa8206701.tar.gz
fix incorrect encryption bug with WAKE-OFB that was introduced in version 5.5 (reported by John Famiglietti)
Diffstat (limited to 'wake.cpp')
-rw-r--r--wake.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/wake.cpp b/wake.cpp
index 78c243b2..ce406532 100644
--- a/wake.cpp
+++ b/wake.cpp
@@ -94,7 +94,7 @@ void WAKE_Policy<B>::OperateKeystream(KeystreamOperation operation, byte *output
r5 = M(r5, r4);\
r6 = M(r6, r5);\
output += 4;\
- if (x == XOR_KEYSTREAM)\
+ if (!(x & INPUT_NULL))\
input += 4;\
}