summaryrefslogtreecommitdiffstats
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorTan Swee Heng2007-12-07 10:17:43 +0100
committerHerbert Xu2008-01-10 22:16:36 +0100
commit5de8f1b562e87ae9d93a4e0897e54c18a5e82915 (patch)
tree99e82f06212a00334e9974286e10c4dee3514325 /crypto/tcrypt.c
parent[CRYPTO] lzo: Add LZO compression algorithm support (diff)
downloadkernel-qcow2-linux-5de8f1b562e87ae9d93a4e0897e54c18a5e82915.tar.gz
kernel-qcow2-linux-5de8f1b562e87ae9d93a4e0897e54c18a5e82915.tar.xz
kernel-qcow2-linux-5de8f1b562e87ae9d93a4e0897e54c18a5e82915.zip
[CRYPTO] tcrypt: Added salsa20 speed test
This patch adds a simple speed test for salsa20. Usage: modprobe tcrypt mode=206 Signed-of-by: Tan Swee Heng <thesweeheng@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r--crypto/tcrypt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 943a514478bd..0cfb8ebb22ba 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1668,6 +1668,11 @@ static void do_test(void)
camellia_speed_template);
break;
+ case 206:
+ test_cipher_speed("salsa20", ENCRYPT, sec, NULL, 0,
+ salsa20_speed_template);
+ break;
+
case 300:
/* fall through */