summaryrefslogtreecommitdiff
path: root/pct-speedtest.py
diff options
context:
space:
mode:
authorLegrandin <helderijs@gmail.com>2013-05-20 12:43:44 +0200
committerDwayne Litzenberger <dlitz@dlitz.net>2013-10-20 13:30:21 -0700
commit8bdbdb8168511018d44ef014ae21da619ae73c24 (patch)
tree75d7a4c60d07dc0bb960705e71ac5f551d8631a9 /pct-speedtest.py
parent57104488faa9fc386ea1aee249bafb6e2a529a57 (diff)
downloadpycrypto-8bdbdb8168511018d44ef014ae21da619ae73c24.tar.gz
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]
Diffstat (limited to 'pct-speedtest.py')
-rw-r--r--pct-speedtest.py2
1 files changed, 2 insertions, 0 deletions
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: