chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
t/t-bytes.py: Check that indexing, slicing, etc. return `C.ByteString'.
[catacomb-python]
/
t
/
t-algorithms.py
diff --git
a/t/t-algorithms.py
b/t/t-algorithms.py
index 2fd0e090656c26783047ff76be19b85ee1d90445..d7b97cbc403a6ee6cc31f5ec3ea4d1ad2431a4e9 100644
(file)
--- a/
t/t-algorithms.py
+++ b/
t/t-algorithms.py
@@
-788,7
+788,7
@@
class TestKeccak (HashBufferTestMixin):
## Check masking.
x = xcls().hash(m).xof()
## 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))
## Check the `check' method.
me.assertTrue(xcls().hash(m).check(h0))