Changeset 9 for camellia/trunk/speed.py

Show
Ignore:
Timestamp:
05/11/06 17:16:07 (4 years ago)
Author:
sgk
Message:

API変更。keyBitLength引数を無くした。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • camellia/trunk/speed.py

    r7 r9  
    1010  key = sys.argv[1] 
    1111 
    12 keylen = len(key) * 8 
    13 assert keylen in (128, 192, 256), "Key string should be 16, 24, 32 charaters." 
     12assert len(key) in (16, 24, 32), "Key string should be 16, 24, 32 charaters." 
    1413 
    15 keytable = camellia.Ekeygen(keylen, key) 
     14keytable = camellia.Ekeygen(key) 
    1615 
    1716for x in xrange(100000): 
    18   camellia.EncryptBlock(keylen, plain, keytable) 
     17  camellia.EncryptBlock(plain, keytable)