[Cryptech-Commits] [user/sra/aes-keywrap] branch master updated: Add test functionally equivalent to the one Joachim is using.
git at cryptech.is
git at cryptech.is
Thu Jun 28 18:07:58 UTC 2018
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch master
in repository user/sra/aes-keywrap.
The following commit(s) were added to refs/heads/master by this push:
new 5bc5273 Add test functionally equivalent to the one Joachim is using.
5bc5273 is described below
commit 5bc52732bdc004371d31771ff5fff4a421eceb97
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Thu Jun 28 14:07:41 2018 -0400
Add test functionally equivalent to the one Joachim is using.
---
aes_keywrap.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/aes_keywrap.py b/aes_keywrap.py
index a026518..382c310 100755
--- a/aes_keywrap.py
+++ b/aes_keywrap.py
@@ -210,4 +210,12 @@ if __name__ == "__main__":
def test_loopback_9(self):
self.loopback_test("Hello! My name is Inigo Montoya. You killed my AES key wrapper. Prepare to die.")
+ def test_joachim_loopback(self):
+ from os import urandom
+ I = "31:32:33"
+ K = AESKeyWrapWithPadding(urandom(256/8))
+ C = K.wrap_key(I)
+ O = K.unwrap_key(C)
+ self.assertEqual(I, O, "Input and output plaintext did not match: {!r} <> {!r}".format(I, O))
+
unittest.main(verbosity = 9)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list