[Python-Dev] [Python-3000] 3.0 crypto (original) (raw)
Bill Janssen janssen at parc.com
Sat Sep 8 22:36:39 CEST 2007
- Previous message: [Python-Dev] what platforms require RAND_add() before using SSL?
- Next message: [Python-Dev] can't run test_tcl remotely logged in on an OS X machine
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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...)
Bill
- Previous message: [Python-Dev] what platforms require RAND_add() before using SSL?
- Next message: [Python-Dev] can't run test_tcl remotely logged in on an OS X machine
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]