aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography/hazmat/primitives/hmac.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-23 09:29:49 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-23 09:29:49 -0700
commit4549ff346b0f5ee133a3af3d1bf56250ae88cd9c (patch)
tree3fa241f7226a4ee2f8955da5b8f952390401ce79 /cryptography/hazmat/primitives/hmac.py
parenta05af52d1f0fba90030b62185d38523119d68b42 (diff)
downloadcryptography-4549ff346b0f5ee133a3af3d1bf56250ae88cd9c.tar.gz
cryptography-4549ff346b0f5ee133a3af3d1bf56250ae88cd9c.tar.bz2
cryptography-4549ff346b0f5ee133a3af3d1bf56250ae88cd9c.zip
Changed methods on interface providers to have argument names match the interface.
This is important because it means passing things as keyword arguments will work consistently
Diffstat (limited to 'cryptography/hazmat/primitives/hmac.py')
-rw-r--r--cryptography/hazmat/primitives/hmac.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cryptography/hazmat/primitives/hmac.py b/cryptography/hazmat/primitives/hmac.py
index 23292432..b85fb2aa 100644
--- a/cryptography/hazmat/primitives/hmac.py
+++ b/cryptography/hazmat/primitives/hmac.py
@@ -42,12 +42,12 @@ class HMAC(object):
else:
self._ctx = ctx
- def update(self, msg):
+ def update(self, data):
if self._ctx is None:
raise AlreadyFinalized("Context was already finalized.")
- if not isinstance(msg, bytes):
- raise TypeError("msg must be bytes.")
- self._ctx.update(msg)
+ if not isinstance(data, bytes):
+ raise TypeError("data must be bytes.")
+ self._ctx.update(data)
def copy(self):
if self._ctx is None: