diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-23 09:29:49 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-23 09:29:49 -0700 |
commit | 4549ff346b0f5ee133a3af3d1bf56250ae88cd9c (patch) | |
tree | 3fa241f7226a4ee2f8955da5b8f952390401ce79 /cryptography/hazmat/primitives/hmac.py | |
parent | a05af52d1f0fba90030b62185d38523119d68b42 (diff) | |
download | cryptography-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.py | 8 |
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: |