summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.h
diff options
context:
space:
mode:
authorTan Swee Heng <thesweeheng@gmail.com>2007-12-07 17:17:43 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-11 08:16:36 +1100
commit11ebc95d6fb2a0db6c7ff28bacac6f2a01db875d (patch)
tree5927a818b7e9bce798dc5fbeaed37818917787e4 /crypto/tcrypt.h
parent4a2616bfe8e4ca2008c52e8cfd7213e636d31e4a (diff)
downloadlinux-crypto-11ebc95d6fb2a0db6c7ff28bacac6f2a01db875d.tar.gz
linux-crypto-11ebc95d6fb2a0db6c7ff28bacac6f2a01db875d.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.h')
-rw-r--r--crypto/tcrypt.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/tcrypt.h b/crypto/tcrypt.h
index 175f26a5..5b865092 100644
--- a/crypto/tcrypt.h
+++ b/crypto/tcrypt.h
@@ -7947,4 +7947,20 @@ static struct cipher_speed camellia_speed_template[] = {
{ .klen = 0, .blen = 0, }
};
+static struct cipher_speed salsa20_speed_template[] = {
+ { .klen = 16, .blen = 16, },
+ { .klen = 16, .blen = 64, },
+ { .klen = 16, .blen = 256, },
+ { .klen = 16, .blen = 1024, },
+ { .klen = 16, .blen = 8192, },
+ { .klen = 32, .blen = 16, },
+ { .klen = 32, .blen = 64, },
+ { .klen = 32, .blen = 256, },
+ { .klen = 32, .blen = 1024, },
+ { .klen = 32, .blen = 8192, },
+
+ /* End marker */
+ { .klen = 0, .blen = 0, }
+};
+
#endif /* _CRYPTO_TCRYPT_H */