aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography/hazmat/primitives/hmac.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-23 22:15:01 -0700
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-23 22:15:01 -0700
commitf281daed0e92dd3d00f9aa2fda6ae41e80a0e1fc (patch)
tree3fa241f7226a4ee2f8955da5b8f952390401ce79 /cryptography/hazmat/primitives/hmac.py
parenta05af52d1f0fba90030b62185d38523119d68b42 (diff)
parent4549ff346b0f5ee133a3af3d1bf56250ae88cd9c (diff)
downloadcryptography-f281daed0e92dd3d00f9aa2fda6ae41e80a0e1fc.tar.gz
cryptography-f281daed0e92dd3d00f9aa2fda6ae41e80a0e1fc.tar.bz2
cryptography-f281daed0e92dd3d00f9aa2fda6ae41e80a0e1fc.zip
Merge pull request #1433 from alex/match-interface-names
Changed methods on interface providers to have argument names match the interface.
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: