Permalink
Browse files

[project @ Correct hashlib issue (thanks: Andr� Cruz <andre.cruz at c…

…o.sapo.pt>)]
  • Loading branch information...
1 parent d527657 commit 81a4d2f1f5e503c1ee35b63af83c5f3719115eaa tailor committed Dec 8, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 openid/cryptutil.py
View
@@ -46,6 +46,7 @@
class HashContainer(object):
def __init__(self, hash_constructor):
self.new = hash_constructor
+ self.digest_size = hash_constructor().digest_size
sha1_module = HashContainer(hashlib.sha1)
sha256_module = HashContainer(hashlib.sha256)

0 comments on commit 81a4d2f

Please sign in to comment.