diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-06-29 07:49:59 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-06-29 07:49:59 +0200 |
commit | 7af04fe5b1faef1c49bd32f7167a04705e179322 (patch) | |
tree | 3197e28a2b4f140383c7e077f46f6497bd26f599 | |
parent | 9e08b2d3f5cdcca969f13c2cacd4511693848d59 (diff) |
Fixed magical capitalizations.
-rwxr-xr-x | src/model/keywrap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/keywrap.py b/src/model/keywrap.py index 1599669..5524937 100755 --- a/src/model/keywrap.py +++ b/src/model/keywrap.py @@ -58,7 +58,7 @@ VERBOSE = True #------------------------------------------------------------------- # AESKeyWrapWithPadding #------------------------------------------------------------------- -class AESKeyWrapWithPadding(Object): +class AESKeyWrapWithPadding(object): """ Implementation of AES Key Wrap With Padding from RFC 5649. """ @@ -103,7 +103,7 @@ class AESKeyWrapWithPadding(Object): for i in self._start_stop(1, n): R[0], R[i] = self._encrypt(R[0], R[i]) R[0] = self._xor(R[0], n * j + i) - Assert len(R) == (n + 1) and all(len(r) == 8 for r in R) + assert len(R) == (n + 1) and all(len(r) == 8 for r in R) return "".join(R) def unwrap(self, C): |