aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/tcrypt.c5
-rw-r--r--crypto/tcrypt.h16
2 files changed, 21 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)
1668 camellia_speed_template); 1668 camellia_speed_template);
1669 break; 1669 break;
1670 1670
1671 case 206:
1672 test_cipher_speed("salsa20", ENCRYPT, sec, NULL, 0,
1673 salsa20_speed_template);
1674 break;
1675
1671 case 300: 1676 case 300:
1672 /* fall through */ 1677 /* fall through */
1673 1678
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 */