Does not work on bytearrays and memoryviews

Bug #1256172 reported by Nikolaus Rath
10
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.

Revision history for this message
Richard Mitchell (mitchellrj) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.