diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-06-28 13:17:49 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-06-28 13:17:49 +0200 |
commit | 3561980487ec7b67dbab1047b1c1525eb0ad66d2 (patch) | |
tree | 1a1e366ac3bafa14026bbed94738c4e9a20cfb00 /src | |
parent | a2248a88b3e66d6f2ecc2818c4ffa9c1d81e55d3 (diff) |
Minor edit.
Diffstat (limited to 'src')
-rwxr-xr-x | src/model/keywrap.py | 6 |
1 files 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): |