> 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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com