Does not work on bytearrays and memoryviews
Bug #1256172 reported by
Nikolaus Rath
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python-Crypto |
New
|
Undecided
|
Unassigned |
Bug Description
When calling Cipher.decrypt() on a memoryview or bytearray, it fails with
TypeError: argument must be read-only pinned buffer, not memoryview
I don't see any reason why decrypt shouldn't be able to work with either of these objects, so I suspect that this is just an overeager type check. As far as I understand, memoryview is actually the Python 3 equivalent of Python 2's buffer.
To post a comment you must log in.
See https:/ /github. com/dlitz/ pycrypto/ pull/81