diff options
author | weidai <weidai11@users.noreply.github.com> | 2009-10-31 21:18:37 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2009-10-31 21:18:37 +0000 |
commit | 2cb9074afdb6c10f686b863fc8354fdfa8206701 (patch) | |
tree | fdf273b985dfe798d49cebb63e32bae82f822651 /wake.cpp | |
parent | 43245166ca6dedbf0f9a67098877ab9d0519bbc0 (diff) | |
download | cryptopp-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.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;\ } |