From 58de28a5d32bc10e15766e5a59f41b07397cc6cb Mon Sep 17 00:00:00 2001 From: Richard Mitchell Date: Mon, 28 Apr 2014 16:58:27 +0100 Subject: Fix speedtest run for ECB modes. --- pct-speedtest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pct-speedtest.py b/pct-speedtest.py index 4ce18be..c7b893a 100644 --- a/pct-speedtest.py +++ b/pct-speedtest.py @@ -186,6 +186,8 @@ class Benchmark: initial_value=bytes_to_long(iv), allow_wraparound=True) cipher = module.new(key, module.MODE_CTR, counter=ctr) + elif mode==module.MODE_ECB: + cipher = module.new(key, module.MODE_ECB) else: cipher = module.new(key, mode, iv) -- cgit v1.2.1