[Cryptech-Commits] [core/util/keywrap] 19/95: Fixed magical capitalizations.
git at cryptech.is
git at cryptech.is
Wed Mar 25 17:18:18 UTC 2020
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository core/util/keywrap.
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):
More information about the Commits
mailing list