[PYTHON-CRYPTO] SIG thoughts.

Andrew Kuchling akuchlin at CNRI.RESTON.VA.US
Thu Feb 8 22:50:23 CET 2001


On Thu, Feb 08, 2001 at 03:47:09PM -0500, Bryan Mongeau wrote:
>Very cool. I like this. Two small issues I can think of:
>aes = crypto.find_alg("aes")
>precludes the ability to pass any arguments to the AES class constructor
>without some trickery. Maybe:

Would find_alg() return an instance or a module, though?  Perhaps you'd write:
cipher_mod = crypto.find_alg('aes')
encryptor = cipher_mod.new(key, ...)

JCE has an interesting idea, using objects instead of simple strings
for keys; that allows having methods to do things like check the
parity of a DES key.  That might well be too cumbersome, though.

>Help me out here... I can't think of any... :)

RC5, which has a variable number of rounds and even a variable word size.

--amk





More information about the python-crypto mailing list