incubator-heraldry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ket...@apache.org
Subject svn commit: r493387 - /incubator/heraldry/libraries/python/openid/trunk/openid/cryptutil.py
Date Sat, 06 Jan 2007 05:26:59 GMT
Author: keturn
Date: Fri Jan  5 21:26:59 2007
New Revision: 493387

URL: http://svn.apache.org/viewvc?view=rev&rev=493387
Log:
[python-to-heraldry @ Add cryptutil.SHA256_AVAILABLE]

Original author: cygnus@janrain.com
Date: 2006-12-27 20:50:34+00:00

Modified:
    incubator/heraldry/libraries/python/openid/trunk/openid/cryptutil.py

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/cryptutil.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/cryptutil.py?view=diff&rev=493387&r1=493386&r2=493387
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/cryptutil.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/cryptutil.py Fri Jan  5 21:26:59
2007
@@ -54,6 +54,8 @@
     def sha256(s):
         return sha256_module.new(s).digest()
 
+    SHA256_AVAILABLE = True
+
 else:
     _no_sha256 = NotImplementedError(
         'Use Python 2.5, install pycrypto or install hashlib to use SHA256')
@@ -63,6 +65,8 @@
 
     def sha256(s):
         raise _no_sha256
+
+    SHA256_AVAILABLE = False
 
 try:
     from Crypto.Util.number import long_to_bytes, bytes_to_long



Mime
View raw message