diff options
Diffstat (limited to 'crypto/tcrypt.h')
-rw-r--r-- | crypto/tcrypt.h | 158 |
1 files changed, 58 insertions, 100 deletions
diff --git a/crypto/tcrypt.h b/crypto/tcrypt.h index f785e5618e11..4180a7463e4e 100644 --- a/crypto/tcrypt.h +++ b/crypto/tcrypt.h | |||
@@ -8032,7 +8032,62 @@ static struct hash_testvec crc32c_tv_template[] = { | |||
8032 | /* | 8032 | /* |
8033 | * Cipher speed tests | 8033 | * Cipher speed tests |
8034 | */ | 8034 | */ |
8035 | static struct cipher_speed aes_speed_template[] = { | 8035 | static struct cipher_speed speed_template_8[] = { |
8036 | { .klen = 8, .blen = 16, }, | ||
8037 | { .klen = 8, .blen = 64, }, | ||
8038 | { .klen = 8, .blen = 256, }, | ||
8039 | { .klen = 8, .blen = 1024, }, | ||
8040 | { .klen = 8, .blen = 8192, }, | ||
8041 | |||
8042 | /* End marker */ | ||
8043 | { .klen = 0, .blen = 0, } | ||
8044 | }; | ||
8045 | |||
8046 | static struct cipher_speed speed_template_24[] = { | ||
8047 | { .klen = 24, .blen = 16, }, | ||
8048 | { .klen = 24, .blen = 64, }, | ||
8049 | { .klen = 24, .blen = 256, }, | ||
8050 | { .klen = 24, .blen = 1024, }, | ||
8051 | { .klen = 24, .blen = 8192, }, | ||
8052 | |||
8053 | /* End marker */ | ||
8054 | { .klen = 0, .blen = 0, } | ||
8055 | }; | ||
8056 | |||
8057 | static struct cipher_speed speed_template_8_32[] = { | ||
8058 | /* Don't support blowfish keys > 256 bit in this test */ | ||
8059 | { .klen = 8, .blen = 16, }, | ||
8060 | { .klen = 8, .blen = 64, }, | ||
8061 | { .klen = 8, .blen = 256, }, | ||
8062 | { .klen = 8, .blen = 1024, }, | ||
8063 | { .klen = 8, .blen = 8192, }, | ||
8064 | { .klen = 32, .blen = 16, }, | ||
8065 | { .klen = 32, .blen = 64, }, | ||
8066 | { .klen = 32, .blen = 256, }, | ||
8067 | { .klen = 32, .blen = 1024, }, | ||
8068 | { .klen = 32, .blen = 8192, }, | ||
8069 | |||
8070 | /* End marker */ | ||
8071 | { .klen = 0, .blen = 0, } | ||
8072 | }; | ||
8073 | |||
8074 | static struct cipher_speed speed_template_16_32[] = { | ||
8075 | { .klen = 16, .blen = 16, }, | ||
8076 | { .klen = 16, .blen = 64, }, | ||
8077 | { .klen = 16, .blen = 256, }, | ||
8078 | { .klen = 16, .blen = 1024, }, | ||
8079 | { .klen = 16, .blen = 8192, }, | ||
8080 | { .klen = 32, .blen = 16, }, | ||
8081 | { .klen = 32, .blen = 64, }, | ||
8082 | { .klen = 32, .blen = 256, }, | ||
8083 | { .klen = 32, .blen = 1024, }, | ||
8084 | { .klen = 32, .blen = 8192, }, | ||
8085 | |||
8086 | /* End marker */ | ||
8087 | { .klen = 0, .blen = 0, } | ||
8088 | }; | ||
8089 | |||
8090 | static struct cipher_speed speed_template_16_24_32[] = { | ||
8036 | { .klen = 16, .blen = 16, }, | 8091 | { .klen = 16, .blen = 16, }, |
8037 | { .klen = 16, .blen = 64, }, | 8092 | { .klen = 16, .blen = 64, }, |
8038 | { .klen = 16, .blen = 256, }, | 8093 | { .klen = 16, .blen = 256, }, |
@@ -8053,7 +8108,7 @@ static struct cipher_speed aes_speed_template[] = { | |||
8053 | { .klen = 0, .blen = 0, } | 8108 | { .klen = 0, .blen = 0, } |
8054 | }; | 8109 | }; |
8055 | 8110 | ||
8056 | static struct cipher_speed aes_lrw_speed_template[] = { | 8111 | static struct cipher_speed speed_template_32_40_48[] = { |
8057 | { .klen = 32, .blen = 16, }, | 8112 | { .klen = 32, .blen = 16, }, |
8058 | { .klen = 32, .blen = 64, }, | 8113 | { .klen = 32, .blen = 64, }, |
8059 | { .klen = 32, .blen = 256, }, | 8114 | { .klen = 32, .blen = 256, }, |
@@ -8074,7 +8129,7 @@ static struct cipher_speed aes_lrw_speed_template[] = { | |||
8074 | { .klen = 0, .blen = 0, } | 8129 | { .klen = 0, .blen = 0, } |
8075 | }; | 8130 | }; |
8076 | 8131 | ||
8077 | static struct cipher_speed aes_xts_speed_template[] = { | 8132 | static struct cipher_speed speed_template_32_48_64[] = { |
8078 | { .klen = 32, .blen = 16, }, | 8133 | { .klen = 32, .blen = 16, }, |
8079 | { .klen = 32, .blen = 64, }, | 8134 | { .klen = 32, .blen = 64, }, |
8080 | { .klen = 32, .blen = 256, }, | 8135 | { .klen = 32, .blen = 256, }, |
@@ -8095,66 +8150,6 @@ static struct cipher_speed aes_xts_speed_template[] = { | |||
8095 | { .klen = 0, .blen = 0, } | 8150 | { .klen = 0, .blen = 0, } |
8096 | }; | 8151 | }; |
8097 | 8152 | ||
8098 | static struct cipher_speed des3_ede_speed_template[] = { | ||
8099 | { .klen = 24, .blen = 16, }, | ||
8100 | { .klen = 24, .blen = 64, }, | ||
8101 | { .klen = 24, .blen = 256, }, | ||
8102 | { .klen = 24, .blen = 1024, }, | ||
8103 | { .klen = 24, .blen = 8192, }, | ||
8104 | |||
8105 | /* End marker */ | ||
8106 | { .klen = 0, .blen = 0, } | ||
8107 | }; | ||
8108 | |||
8109 | static struct cipher_speed twofish_speed_template[] = { | ||
8110 | { .klen = 16, .blen = 16, }, | ||
8111 | { .klen = 16, .blen = 64, }, | ||
8112 | { .klen = 16, .blen = 256, }, | ||
8113 | { .klen = 16, .blen = 1024, }, | ||
8114 | { .klen = 16, .blen = 8192, }, | ||
8115 | { .klen = 24, .blen = 16, }, | ||
8116 | { .klen = 24, .blen = 64, }, | ||
8117 | { .klen = 24, .blen = 256, }, | ||
8118 | { .klen = 24, .blen = 1024, }, | ||
8119 | { .klen = 24, .blen = 8192, }, | ||
8120 | { .klen = 32, .blen = 16, }, | ||
8121 | { .klen = 32, .blen = 64, }, | ||
8122 | { .klen = 32, .blen = 256, }, | ||
8123 | { .klen = 32, .blen = 1024, }, | ||
8124 | { .klen = 32, .blen = 8192, }, | ||
8125 | |||
8126 | /* End marker */ | ||
8127 | { .klen = 0, .blen = 0, } | ||
8128 | }; | ||
8129 | |||
8130 | static struct cipher_speed blowfish_speed_template[] = { | ||
8131 | /* Don't support blowfish keys > 256 bit in this test */ | ||
8132 | { .klen = 8, .blen = 16, }, | ||
8133 | { .klen = 8, .blen = 64, }, | ||
8134 | { .klen = 8, .blen = 256, }, | ||
8135 | { .klen = 8, .blen = 1024, }, | ||
8136 | { .klen = 8, .blen = 8192, }, | ||
8137 | { .klen = 32, .blen = 16, }, | ||
8138 | { .klen = 32, .blen = 64, }, | ||
8139 | { .klen = 32, .blen = 256, }, | ||
8140 | { .klen = 32, .blen = 1024, }, | ||
8141 | { .klen = 32, .blen = 8192, }, | ||
8142 | |||
8143 | /* End marker */ | ||
8144 | { .klen = 0, .blen = 0, } | ||
8145 | }; | ||
8146 | |||
8147 | static struct cipher_speed des_speed_template[] = { | ||
8148 | { .klen = 8, .blen = 16, }, | ||
8149 | { .klen = 8, .blen = 64, }, | ||
8150 | { .klen = 8, .blen = 256, }, | ||
8151 | { .klen = 8, .blen = 1024, }, | ||
8152 | { .klen = 8, .blen = 8192, }, | ||
8153 | |||
8154 | /* End marker */ | ||
8155 | { .klen = 0, .blen = 0, } | ||
8156 | }; | ||
8157 | |||
8158 | /* | 8153 | /* |
8159 | * Digest speed tests | 8154 | * Digest speed tests |
8160 | */ | 8155 | */ |
@@ -8186,41 +8181,4 @@ static struct hash_speed generic_hash_speed_template[] = { | |||
8186 | { .blen = 0, .plen = 0, } | 8181 | { .blen = 0, .plen = 0, } |
8187 | }; | 8182 | }; |
8188 | 8183 | ||
8189 | static struct cipher_speed camellia_speed_template[] = { | ||
8190 | { .klen = 16, .blen = 16, }, | ||
8191 | { .klen = 16, .blen = 64, }, | ||
8192 | { .klen = 16, .blen = 256, }, | ||
8193 | { .klen = 16, .blen = 1024, }, | ||
8194 | { .klen = 16, .blen = 8192, }, | ||
8195 | { .klen = 24, .blen = 16, }, | ||
8196 | { .klen = 24, .blen = 64, }, | ||
8197 | { .klen = 24, .blen = 256, }, | ||
8198 | { .klen = 24, .blen = 1024, }, | ||
8199 | { .klen = 24, .blen = 8192, }, | ||
8200 | { .klen = 32, .blen = 16, }, | ||
8201 | { .klen = 32, .blen = 64, }, | ||
8202 | { .klen = 32, .blen = 256, }, | ||
8203 | { .klen = 32, .blen = 1024, }, | ||
8204 | { .klen = 32, .blen = 8192, }, | ||
8205 | |||
8206 | /* End marker */ | ||
8207 | { .klen = 0, .blen = 0, } | ||
8208 | }; | ||
8209 | |||
8210 | static struct cipher_speed salsa20_speed_template[] = { | ||
8211 | { .klen = 16, .blen = 16, }, | ||
8212 | { .klen = 16, .blen = 64, }, | ||
8213 | { .klen = 16, .blen = 256, }, | ||
8214 | { .klen = 16, .blen = 1024, }, | ||
8215 | { .klen = 16, .blen = 8192, }, | ||
8216 | { .klen = 32, .blen = 16, }, | ||
8217 | { .klen = 32, .blen = 64, }, | ||
8218 | { .klen = 32, .blen = 256, }, | ||
8219 | { .klen = 32, .blen = 1024, }, | ||
8220 | { .klen = 32, .blen = 8192, }, | ||
8221 | |||
8222 | /* End marker */ | ||
8223 | { .klen = 0, .blen = 0, } | ||
8224 | }; | ||
8225 | |||
8226 | #endif /* _CRYPTO_TCRYPT_H */ | 8184 | #endif /* _CRYPTO_TCRYPT_H */ |