[pycrypto] Oddity?

Dave Pawson dave.pawson at gmail.com
Sun Nov 24 01:00:05 PST 2013


https://www.dlitz.net/software/pycrypto/doc/#introduction
says

key_size: An integer value; the size of the keys required by this module.

Yet iterating over [AES,ARC2,Blowfish,CAST,DES,DES3]
I get
print("Alg: %s, key size %s" % (name, type(alg.key_size)))
Alg: AES, key size <class 'tuple'>
Alg: ARC2, key size <class 'range'>
Alg: Blowfish, key size <class 'range'>
Alg: CAST, key size <class 'range'>
Alg: DES, key size <class 'int'>
Alg: DES3, key size <class 'tuple'>

is this work outstanding?

regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk


More information about the pycrypto mailing list