[Python-Dev] [Python-3000] 3.0 crypto

Bill Janssen janssen at parc.com
Sat Sep 8 22:36:39 CEST 2007

> We're already linking against the OpenSSL EVP libraries for hashlib
> (and against the OpenSSL SSL libraries for the SSL support).  It
> wouldn't be hard to expose the EVP functions a bit more, essentially
> as hash functions that return long (and reversible) hashes:
>    encryptor = opensslevp.encryptor("AES-256-CBC", ...maybe some options...)
>    encryptor.update(...some plaintext...)

Almost certainly this signature should be

    encryptor = opensslevp.encryptor("AES-256-CBC", KEY, ...options...)

and correspondingly

    decryptor = opensslevp.decryptor("AES-256-CBC", KEY, ...options...)


More information about the Python-Dev mailing list