From 7af04fe5b1faef1c49bd32f7167a04705e179322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Fri, 29 Jun 2018 07:49:59 +0200 Subject: Fixed magical capitalizations. --- src/model/keywrap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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): -- cgit v1.2.3