Changeset 9 for camellia/trunk/speed.py
- Timestamp:
- 05/11/06 17:16:07 (4 years ago)
- Files:
-
- 1 modified
-
camellia/trunk/speed.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
camellia/trunk/speed.py
r7 r9 10 10 key = sys.argv[1] 11 11 12 keylen = len(key) * 8 13 assert keylen in (128, 192, 256), "Key string should be 16, 24, 32 charaters." 12 assert len(key) in (16, 24, 32), "Key string should be 16, 24, 32 charaters." 14 13 15 keytable = camellia.Ekeygen(key len, key)14 keytable = camellia.Ekeygen(key) 16 15 17 16 for x in xrange(100000): 18 camellia.EncryptBlock( keylen,plain, keytable)17 camellia.EncryptBlock(plain, keytable)
