summaryrefslogtreecommitdiff
path: root/_pysrp.py
diff options
context:
space:
mode:
authorTom Cocagne <devnull@localhost>2010-11-29 16:19:48 -0500
committerTom Cocagne <devnull@localhost>2010-11-29 16:19:48 -0500
commitd518af18513e0a14a9791a209643d19eeaa6567a (patch)
tree27f71a19f044647af103bdff7bd9b56198bb0b2e /_pysrp.py
parent6189439d951a0568d117de85f2422a1f5be1ecfe (diff)
fully implemented and documented
Diffstat (limited to '_pysrp.py')
-rw-r--r--_pysrp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/_pysrp.py b/_pysrp.py
index 2050837..4674227 100644
--- a/_pysrp.py
+++ b/_pysrp.py
@@ -19,9 +19,9 @@ import binascii
SHA1 = 0
SHA224 = 1
-SHA256 = 3
-SHA384 = 4
-SHA512 = 5
+SHA256 = 2
+SHA384 = 3
+SHA512 = 4
NG_1024 = 0
NG_2048 = 1
@@ -34,7 +34,7 @@ _hash_map = { SHA1 : hashlib.sha1,
SHA384 : hashlib.sha384,
SHA512 : hashlib.sha512 }
-
+
_ng_const = (
# 1024-bit
('''\