When calling Cryptography with a memoryview I get this error: """ TypeError: initializer for ctype 'unsigned char *' must be a cdata pointer, not memoryview """
Memory view are useful to avoid copies, eating memory and CPU for no reason. In my personal situation, I have 4 MB blocks, each divided in 16 pieces of 256Kbytes independently encrypted. I must extract those 256Kbytes fragments to call cryptography, instead of just passing a memory view with the appropriate slice. A secondary request would be to provide a different option for output, for the same reason: provide a target for output: a bytearray/writable memory view, or a file-like object. For the same reason: avoiding copies and ease concatenation. Hope you find these suggestions useful. -- Jesús Cea Avión _/_/ _/_/_/ _/_/_/ j...@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ Twitter: @jcea _/_/ _/_/ _/_/_/_/_/ jabber / xmpp:j...@jabber.org _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibniz
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev