hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/crypto/tcrypt.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Quick & dirty crypto testing module.
34 *
....@@ -7,12 +8,6 @@
78 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
89 * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
910 * Copyright (c) 2007 Nokia Siemens Networks
10
- *
11
- * This program is free software; you can redistribute it and/or modify it
12
- * under the terms of the GNU General Public License as published by the Free
13
- * Software Foundation; either version 2 of the License, or (at your option)
14
- * any later version.
15
- *
1611 */
1712 #ifndef _CRYPTO_TCRYPT_H
1813 #define _CRYPTO_TCRYPT_H
....@@ -30,7 +25,6 @@
3025 struct hash_speed {
3126 unsigned int blen; /* buffer length */
3227 unsigned int plen; /* per-update length */
33
- unsigned int klen; /* key length */
3428 };
3529
3630 /*
....@@ -51,6 +45,7 @@
5145 * Cipher speed tests
5246 */
5347 static u8 speed_template_8[] = {8, 0};
48
+static u8 speed_template_16[] = {16, 0};
5449 static u8 speed_template_24[] = {24, 0};
5550 static u8 speed_template_8_16[] = {8, 16, 0};
5651 static u8 speed_template_8_32[] = {8, 32, 0};
....@@ -99,34 +94,6 @@
9994
10095 /* End marker */
10196 { .blen = 0, .plen = 0, }
102
-};
103
-
104
-static struct hash_speed hash_speed_template_16[] = {
105
- { .blen = 16, .plen = 16, .klen = 16, },
106
- { .blen = 64, .plen = 16, .klen = 16, },
107
- { .blen = 64, .plen = 64, .klen = 16, },
108
- { .blen = 256, .plen = 16, .klen = 16, },
109
- { .blen = 256, .plen = 64, .klen = 16, },
110
- { .blen = 256, .plen = 256, .klen = 16, },
111
- { .blen = 1024, .plen = 16, .klen = 16, },
112
- { .blen = 1024, .plen = 256, .klen = 16, },
113
- { .blen = 1024, .plen = 1024, .klen = 16, },
114
- { .blen = 2048, .plen = 16, .klen = 16, },
115
- { .blen = 2048, .plen = 256, .klen = 16, },
116
- { .blen = 2048, .plen = 1024, .klen = 16, },
117
- { .blen = 2048, .plen = 2048, .klen = 16, },
118
- { .blen = 4096, .plen = 16, .klen = 16, },
119
- { .blen = 4096, .plen = 256, .klen = 16, },
120
- { .blen = 4096, .plen = 1024, .klen = 16, },
121
- { .blen = 4096, .plen = 4096, .klen = 16, },
122
- { .blen = 8192, .plen = 16, .klen = 16, },
123
- { .blen = 8192, .plen = 256, .klen = 16, },
124
- { .blen = 8192, .plen = 1024, .klen = 16, },
125
- { .blen = 8192, .plen = 4096, .klen = 16, },
126
- { .blen = 8192, .plen = 8192, .klen = 16, },
127
-
128
- /* End marker */
129
- { .blen = 0, .plen = 0, .klen = 0, }
13097 };
13198
13299 static struct hash_speed poly1305_speed_template[] = {