Skip to content
This repository
Newer
Older
100644 115 lines (105 sloc) 3.455 kb
1da177e4 » Linus Torvalds
2005-04-16 Linux-2.6.12-rc2
1 /*
2 * Quick & dirty crypto testing module.
3 *
4 * This will only exist until we have a better testing mechanism
5 * (e.g. a char device).
6 *
7 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
8 * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
e3a4ea4f » Mikko Herranen
2007-11-26 [CRYPTO] tcrypt: Add aead support
9 * Copyright (c) 2007 Nokia Siemens Networks
1da177e4 » Linus Torvalds
2005-04-16 Linux-2.6.12-rc2
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
ef2736fc » herbertx
2005-06-22 [CRYPTO]: White space and coding style clean up in tcrypt
13 * Software Foundation; either version 2 of the License, or (at your option)
1da177e4 » Linus Torvalds
2005-04-16 Linux-2.6.12-rc2
14 * any later version.
15 *
16 */
17 #ifndef _CRYPTO_TCRYPT_H
18 #define _CRYPTO_TCRYPT_H
19
da7f033d » herbertx
2008-07-31 crypto: cryptomgr - Add test infrastructure
20 struct cipher_speed_template {
21 const char *key;
22 unsigned int klen;
e3a4ea4f » Mikko Herranen
2007-11-26 [CRYPTO] tcrypt: Add aead support
23 };
24
e9d41164 » herbertx
2006-08-19 [CRYPTO] tcrypt: Use HMAC template and hash interface
25 struct hash_speed {
e8057928 » Michal Ludvig
2006-05-30 [CRYPTO] tcrypt: Speed benchmark support for digest algorithms
26 unsigned int blen; /* buffer length */
27 unsigned int plen; /* per-update length */
18bcc919 » Huang Ying
2010-03-10 crypto: tcrypt - Speed testing support for ghash
28 unsigned int klen; /* key length */
e8057928 » Michal Ludvig
2006-05-30 [CRYPTO] tcrypt: Speed benchmark support for digest algorithms
29 };
30
a28091ae » Andrew Donofrio
2006-12-10 [CRYPTO] tcrypt: Added test vectors for sha384/sha512
31 /*
1da177e4 » Linus Torvalds
2005-04-16 Linux-2.6.12-rc2
32 * DES test vectors.
33 */
da7f033d » herbertx
2008-07-31 crypto: cryptomgr - Add test infrastructure
34 #define DES3_SPEED_VECTORS 1
1da177e4 » Linus Torvalds
2005-04-16 Linux-2.6.12-rc2
35
da7f033d » herbertx
2008-07-31 crypto: cryptomgr - Add test infrastructure
36 static struct cipher_speed_template des3_speed_template[] = {
1da177e4 » Linus Torvalds
2005-04-16 Linux-2.6.12-rc2
37 {
de224c30 » Sebastian Siewior
2008-03-13 [CRYPTO] tcrypt: Shrink the tcrypt module
38 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
da7f033d » herbertx
2008-07-31 crypto: cryptomgr - Add test infrastructure
39 "\x55\x55\x55\x55\x55\x55\x55\x55"
de224c30 » Sebastian Siewior
2008-03-13 [CRYPTO] tcrypt: Shrink the tcrypt module
40 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
02ab5a70 » Noriaki TAKAMIYA
2007-01-24 [CRYPTO] camellia: added the testing code of Camellia cipher
41 .klen = 24,
e2ee95b8 » Hye-Shik Chang
2007-08-21 [CRYPTO] seed: New cipher algorithm
42 }
43 };
44
c907ee76 » herbertx
2006-08-21 [CRYPTO] tcrypt: Use test_hash for crc32c
45 /*
ebfd9bcf » laf0rge
2005-06-22 [CRYPTO]: Add cipher speed tests
46 * Cipher speed tests
47 */
d5dc3927 » Sebastian Siewior
2008-03-11 [CRYPTO] tcrypt: Shrink speed templates
48 static u8 speed_template_8[] = {8, 0};
49 static u8 speed_template_24[] = {24, 0};
50 static u8 speed_template_8_32[] = {8, 32, 0};
51 static u8 speed_template_16_32[] = {16, 32, 0};
52 static u8 speed_template_16_24_32[] = {16, 24, 32, 0};
53 static u8 speed_template_32_40_48[] = {32, 40, 48, 0};
54 static u8 speed_template_32_48_64[] = {32, 48, 64, 0};
f19f5111 » Rik Snel
2007-09-19 [CRYPTO] xts: XTS blockcipher mode implementation without partial blocks
55
e8057928 » Michal Ludvig
2006-05-30 [CRYPTO] tcrypt: Speed benchmark support for digest algorithms
56 /*
57 * Digest speed tests
58 */
e9d41164 » herbertx
2006-08-19 [CRYPTO] tcrypt: Use HMAC template and hash interface
59 static struct hash_speed generic_hash_speed_template[] = {
de224c30 » Sebastian Siewior
2008-03-13 [CRYPTO] tcrypt: Shrink the tcrypt module
60 { .blen = 16, .plen = 16, },
e8057928 » Michal Ludvig
2006-05-30 [CRYPTO] tcrypt: Speed benchmark support for digest algorithms
61 { .blen = 64, .plen = 16, },
62 { .blen = 64, .plen = 64, },
63 { .blen = 256, .plen = 16, },
64 { .blen = 256, .plen = 64, },
65 { .blen = 256, .plen = 256, },
66 { .blen = 1024, .plen = 16, },
67 { .blen = 1024, .plen = 256, },
68 { .blen = 1024, .plen = 1024, },
69 { .blen = 2048, .plen = 16, },
70 { .blen = 2048, .plen = 256, },
71 { .blen = 2048, .plen = 1024, },
72 { .blen = 2048, .plen = 2048, },
73 { .blen = 4096, .plen = 16, },
74 { .blen = 4096, .plen = 256, },
75 { .blen = 4096, .plen = 1024, },
76 { .blen = 4096, .plen = 4096, },
77 { .blen = 8192, .plen = 16, },
78 { .blen = 8192, .plen = 256, },
79 { .blen = 8192, .plen = 1024, },
80 { .blen = 8192, .plen = 4096, },
81 { .blen = 8192, .plen = 8192, },
82
83 /* End marker */
84 { .blen = 0, .plen = 0, }
85 };
86
18bcc919 » Huang Ying
2010-03-10 crypto: tcrypt - Speed testing support for ghash
87 static struct hash_speed hash_speed_template_16[] = {
88 { .blen = 16, .plen = 16, .klen = 16, },
89 { .blen = 64, .plen = 16, .klen = 16, },
90 { .blen = 64, .plen = 64, .klen = 16, },
91 { .blen = 256, .plen = 16, .klen = 16, },
92 { .blen = 256, .plen = 64, .klen = 16, },
93 { .blen = 256, .plen = 256, .klen = 16, },
94 { .blen = 1024, .plen = 16, .klen = 16, },
95 { .blen = 1024, .plen = 256, .klen = 16, },
96 { .blen = 1024, .plen = 1024, .klen = 16, },
97 { .blen = 2048, .plen = 16, .klen = 16, },
98 { .blen = 2048, .plen = 256, .klen = 16, },
99 { .blen = 2048, .plen = 1024, .klen = 16, },
100 { .blen = 2048, .plen = 2048, .klen = 16, },
101 { .blen = 4096, .plen = 16, .klen = 16, },
102 { .blen = 4096, .plen = 256, .klen = 16, },
103 { .blen = 4096, .plen = 1024, .klen = 16, },
104 { .blen = 4096, .plen = 4096, .klen = 16, },
105 { .blen = 8192, .plen = 16, .klen = 16, },
106 { .blen = 8192, .plen = 256, .klen = 16, },
107 { .blen = 8192, .plen = 1024, .klen = 16, },
108 { .blen = 8192, .plen = 4096, .klen = 16, },
109 { .blen = 8192, .plen = 8192, .klen = 16, },
110
111 /* End marker */
112 { .blen = 0, .plen = 0, .klen = 0, }
113 };
114
1da177e4 » Linus Torvalds
2005-04-16 Linux-2.6.12-rc2
115 #endif /* _CRYPTO_TCRYPT_H */
Something went wrong with that request. Please try again.