incubator-heraldry-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?view=rev&rev=493386
Log:
[python-to-heraldry @ Add session type secret_size attribute]

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

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

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/consumer/consumer.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/consumer/consumer.py?view=diff&rev=493386&r1=493385&r2=493386
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/consumer/consumer.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/consumer/consumer.py Fri Jan 
5 21:26:54 2007
@@ -364,6 +364,7 @@
 class DiffieHellmanSHA1ConsumerSession(object):
     session_type = 'DH-SHA1'
     hash_func = staticmethod(cryptutil.sha1)
+    secret_size = 20
     allowed_assoc_types = ['HMAC-SHA1']
 
     def __init__(self, dh=None):
@@ -396,6 +397,7 @@
 class DiffieHellmanSHA256ConsumerSession(DiffieHellmanSHA1ConsumerSession):
     session_type = 'DH-SHA256'
     hash_func = staticmethod(cryptutil.sha256)
+    secret_size = 32
     allowed_assoc_types = ['HMAC-SHA256']
 
 class PlainTextConsumerSession(object):



Mime
View raw message