From 8bdbdb8168511018d44ef014ae21da619ae73c24 Mon Sep 17 00:00:00 2001 From: Legrandin Date: Mon, 20 May 2013 12:43:44 +0200 Subject: Add EAX authenticated encryption mode [dlitz@dlitz.net: Included changes from the following commits from the author's pull request:] - [9c13f9c] Rename 'IV' parameter to 'nonce' for AEAD modes. - [ca460a7] Made blockalgo.py more PEP-8 compliant; The second parameter of the _GHASH constructor is now the length of the block (block_size) and not the full module. [dlitz@dlitz.net: Fixed unresolved conflict in lib/Crypto/Cipher/blockalgo.py] --- pct-speedtest.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pct-speedtest.py') diff --git a/pct-speedtest.py b/pct-speedtest.py index 378604f..56b352b 100644 --- a/pct-speedtest.py +++ b/pct-speedtest.py @@ -363,6 +363,8 @@ class Benchmark: self.test_encryption("%s-CTR-LE" % (cipher_name,), module, key_bytes, "CTR-LE") if hasattr(module, "MODE_CCM"): self.test_encryption("%s-CCM" % (cipher_name,), module, key_bytes, module.MODE_CCM) + if hasattr(module, "MODE_EAX"): + self.test_encryption("%s-EAX" % (cipher_name,), module, key_bytes, module.MODE_EAX) # Crypto.Cipher (stream ciphers) for cipher_name, module, key_bytes in stream_specs: -- cgit v1.2.1