diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-10-31 21:18:37 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-10-31 21:18:37 +0000 |
commit | 27b944c4272c0408bffdd14253885debd4d9edf9 (patch) | |
tree | fdf273b985dfe798d49cebb63e32bae82f822651 /wake.cpp | |
parent | 1773042c5276dffee8a44d35a964d3b007e89265 (diff) | |
download | cryptopp-27b944c4272c0408bffdd14253885debd4d9edf9.tar.gz |
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
Diffstat (limited to 'wake.cpp')
-rw-r--r-- | wake.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;\ } |