From 3561980487ec7b67dbab1047b1c1525eb0ad66d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Thu, 28 Jun 2018 13:17:49 +0200 Subject: Minor edit. --- src/model/keywrap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/model') 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): -- cgit v1.2.3