diff options
Diffstat (limited to 'src/model/keywrap.py')
-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): |