From 27b944c4272c0408bffdd14253885debd4d9edf9 Mon Sep 17 00:00:00 2001 From: weidai Date: Sat, 31 Oct 2009 21:18:37 +0000 Subject: fix incorrect encryption bug with WAKE-OFB that was introduced in version 5.5 (reported by John Famiglietti) git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@479 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- wake.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wake.cpp') diff --git a/wake.cpp b/wake.cpp index 78c243b..ce40653 100644 --- a/wake.cpp +++ b/wake.cpp @@ -94,7 +94,7 @@ void WAKE_Policy::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;\ } -- cgit v1.2.1