summaryrefslogtreecommitdiff
path: root/pct-speedtest.py
diff options
context:
space:
mode:
authorDwayne C. Litzenberger <dlitz@dlitz.net>2009-08-02 14:04:52 -0400
committerDwayne C. Litzenberger <dlitz@dlitz.net>2009-08-02 14:06:40 -0400
commit9615fb851660a39b0a4781f2e4a20b58578288fe (patch)
treecff38908a5c1ebe1bebe911810349267101e161d /pct-speedtest.py
parent1a84a552475584e776b0bd86f67699e31659cd26 (diff)
downloadpycrypto-9615fb851660a39b0a4781f2e4a20b58578288fe.tar.gz
Add support for the XOR cipher to pct-speedtest.py
Diffstat (limited to 'pct-speedtest.py')
-rw-r--r--pct-speedtest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pct-speedtest.py b/pct-speedtest.py
index c22861b..911ffc2 100644
--- a/pct-speedtest.py
+++ b/pct-speedtest.py
@@ -27,7 +27,7 @@ import time
import os
import sys
-from Crypto.Cipher import AES, ARC2, ARC4, Blowfish, CAST, DES3, DES
+from Crypto.Cipher import AES, ARC2, ARC4, Blowfish, CAST, DES3, DES, XOR
from Crypto.Hash import MD2, MD4, MD5, SHA256, SHA
try:
from Crypto.Hash import RIPEMD
@@ -166,6 +166,8 @@ class Benchmark:
stream_specs = [
("ARC2(128)", ARC2, 16),
("ARC4(128)", ARC4, 16),
+ ("XOR(24)", XOR, 3),
+ ("XOR(256)", XOR, 32),
]
hash_specs = [
("MD2", MD2),