Changeset 222

Show
Ignore:
Timestamp:
Thu Jan 12 05:42:58 2006
Author:
giovannibajo
Message:

Fix PyCrypto? usage

Files:

Legend:

Unmodified
Added
Removed
Modified
  • branches/crypt/Crypt.py

    r221 r222  
    18 18     # Try using PyCrypto if available  
    19 19     try:  
    20           from Crypto.Util.randpool import RandPool  
    21           from Crypto.Hash import SHA512  
    22           return RandPool(hash=SHA512).get_bytes(size)  
      20         from Crypto.Util.randpool import RandomPool  
      21         from Crypto.Hash import SHA256  
      22         return RandomPool(hash=SHA256).get_bytes(size)  
    23 23  
    24 24     except ImportError: