aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/tcrypt.h
diff options
context:
space:
mode:
authorTan Swee Heng <thesweeheng@gmail.com>2007-12-07 04:17:43 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-10 16:16:36 -0500
commit5de8f1b562e87ae9d93a4e0897e54c18a5e82915 (patch)
tree99e82f06212a00334e9974286e10c4dee3514325 /crypto/tcrypt.h
parent0b77abb3b2d0c2eee1da79a3f3bd4312a0edb156 (diff)
[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 175f26a58e2d..5b865092151d 100644
--- a/crypto/tcrypt.h
+++ b/crypto/tcrypt.h
@@ -7947,4 +7947,20 @@ static struct cipher_speed camellia_speed_template[] = {
7947 { .klen = 0, .blen = 0, } 7947 { .klen = 0, .blen = 0, }
7948}; 7948};
7949 7949
7950static struct cipher_speed salsa20_speed_template[] = {
7951 { .klen = 16, .blen = 16, },
7952 { .klen = 16, .blen = 64, },
7953 { .klen = 16, .blen = 256, },
7954 { .klen = 16, .blen = 1024, },
7955 { .klen = 16, .blen = 8192, },
7956 { .klen = 32, .blen = 16, },
7957 { .klen = 32, .blen = 64, },
7958 { .klen = 32, .blen = 256, },
7959 { .klen = 32, .blen = 1024, },
7960 { .klen = 32, .blen = 8192, },
7961
7962 /* End marker */
7963 { .klen = 0, .blen = 0, }
7964};
7965
7950#endif /* _CRYPTO_TCRYPT_H */ 7966#endif /* _CRYPTO_TCRYPT_H */