Changeset 10


Ignore:
Timestamp:
05/11/06 08:20:39 (13 years ago)
Author:
sgk
Message:

Ekeygenにおいて、鍵長が間違ってるとき、assertではなくValueError。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • camellia/trunk/camellia.py

    r9 r10  
    331331    (t, u) = (t[0:4], t[4:8]) 
    332332  else: 
    333     assert False 
     333    raise ValueError, 'rawKey must be 16, 24 or 32 characters length.' 
    334334 
    335335  if keyLength == 16: 
Note: See TracChangeset for help on using the changeset viewer.