[pycrypto] Pickling AES cipher objects - any reasons not to support this?

Dwayne Litzenberger dlitz at dlitz.net
Mon Jan 28 09:36:58 PST 2013


On 01/14/2013 10:14 AM, Legrandin wrote:
> Pickling a cipher and reusing later for a totally different encryption 
> will lead to IV/nonce reuse, which is definitely bad, especially for 
> stream cipher-like modes.
That's a good point, and reason enough not to support it.  We do support 
pickling *key* objects, although IMHO pickling should never be used anyway.

- Dwayne


More information about the pycrypto mailing list