[Cryptech-Commits] [user/js/keywrap] branch master updated: Fixed magical capitalizations.

git at cryptech.is git at cryptech.is
Fri Jun 29 05:50:14 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.

The following commit(s) were added to refs/heads/master by this push:
     new 7af04fe  Fixed magical capitalizations.
7af04fe is described below

commit 7af04fe5b1faef1c49bd32f7167a04705e179322
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Fri Jun 29 07:49:59 2018 +0200

    Fixed magical capitalizations.
---
 src/model/keywrap.py | 4 ++--
 1 file 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):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list