X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/dad564fa66dd0ab52058f25a0eaf6a8e5b3c4316..49e3a113cb9d12d5c3308e64584dce2c916431a1:/t/t-algorithms.py diff --git a/t/t-algorithms.py b/t/t-algorithms.py index 2fd0e09..d7b97cb 100644 --- a/t/t-algorithms.py +++ b/t/t-algorithms.py @@ -788,7 +788,7 @@ class TestKeccak (HashBufferTestMixin): ## Check masking. x = xcls().hash(m).xof() - me.assertEqual(x.mask(m), C.ByteString(m) ^ C.ByteString(h[0:len(m)])) + me.assertEqual(x.mask(m), m ^ h[0:len(m)]) ## Check the `check' method. me.assertTrue(xcls().hash(m).check(h0))