summaryrefslogtreecommitdiffstats
path: root/Lib/hmac.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-18 02:26:39 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-18 02:26:39 (GMT)
commitb64bec3ec078d66a34175b9dec55eaac5c821b46 (patch)
tree2b9660e0ad789f4cf73d9c4fa5d69d5f252c238e /Lib/hmac.py
parenta86f0c17a1385c07710d894b93a1c13159c0b57f (diff)
downloadcpython-b64bec3ec078d66a34175b9dec55eaac5c821b46.zip
cpython-b64bec3ec078d66a34175b9dec55eaac5c821b46.tar.gz
cpython-b64bec3ec078d66a34175b9dec55eaac5c821b46.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/hmac.py')
-rw-r--r--Lib/hmac.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/hmac.py b/Lib/hmac.py
index 1315903..85b1d1d 100644
--- a/Lib/hmac.py
+++ b/Lib/hmac.py
@@ -9,12 +9,12 @@ def _strxor(s1, s2):
"""Utility method. XOR the two strings s1 and s2 (must have same length).
"""
return "".join(map(lambda x, y: chr(ord(x) ^ ord(y)), s1, s2))
-
+
class HMAC:
"""RFC2104 HMAC class.
This (mostly) supports the API for Cryptographic Hash Functions (PEP 247).
- """
+ """
def __init__(self, key, msg = None, digestmod = None):
"""Create a new HMAC object.
@@ -80,7 +80,7 @@ def new(key, msg = None, digestmod = None):
key: The starting key for the hash.
msg: if available, will immediately be hashed into the object's starting
- state.
+ state.
You can now feed arbitrary strings into the object using its update()
method, and can ask for the hash value at any time by calling its digest()