[Cryptech-Commits] [user/js/keywrap] 01/02: Minor edit.

git at cryptech.is git at cryptech.is
Thu Jun 28 11:19:31 UTC 2018


This is an automated email from the git hooks/post-receive script.

joachim at secworks.se pushed a commit to branch master
in repository user/js/keywrap.

commit 3561980487ec7b67dbab1047b1c1525eb0ad66d2
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Thu Jun 28 13:17:49 2018 +0200

    Minor edit.
---
 src/model/keywrap.py | 6 +++---
 1 file 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):



More information about the Commits mailing list