aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/model/keywrap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/keywrap.py b/src/model/keywrap.py
index 747f406..1599669 100755
--- a/src/model/keywrap.py
+++ b/src/model/keywrap.py
@@ -7,7 +7,7 @@
# Python model to test AES KEY WRAP according to RFC 5649.
#
#
-# Author: Joachim Strombergson
+# Author: Joachim Strombergson, Rob Austein
# Copyright (c) 2018, NORDUnet A/S
# All rights reserved.
#
@@ -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):