33c13d9f47dd89e8d7decb5d6cbdb99ead06937c
[strongswan.git] / src / libstrongswan / plugins / test_vectors / test_vectors.h
1 /*
2 * Copyright (C) 2009 Martin Willi
3 * Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 TEST_VECTOR_CRYPTER(aes_cbc1)
17 TEST_VECTOR_CRYPTER(aes_cbc2)
18 TEST_VECTOR_CRYPTER(aes_cbc3)
19 TEST_VECTOR_CRYPTER(aes_cbc4)
20 TEST_VECTOR_CRYPTER(aes_cbc5)
21 TEST_VECTOR_CRYPTER(aes_cbc6)
22 TEST_VECTOR_CRYPTER(aes_ctr1)
23 TEST_VECTOR_CRYPTER(aes_ctr2)
24 TEST_VECTOR_CRYPTER(aes_ctr3)
25 TEST_VECTOR_CRYPTER(aes_ctr4)
26 TEST_VECTOR_CRYPTER(aes_ctr5)
27 TEST_VECTOR_CRYPTER(aes_ctr6)
28 TEST_VECTOR_CRYPTER(aes_ctr7)
29 TEST_VECTOR_CRYPTER(aes_ctr8)
30 TEST_VECTOR_CRYPTER(aes_ctr9)
31 TEST_VECTOR_CRYPTER(blowfish1)
32 TEST_VECTOR_CRYPTER(blowfish2)
33 TEST_VECTOR_CRYPTER(camellia_cbc1)
34 TEST_VECTOR_CRYPTER(camellia_cbc2)
35 TEST_VECTOR_CRYPTER(camellia_cbc3)
36 TEST_VECTOR_CRYPTER(camellia_cbc4)
37 TEST_VECTOR_CRYPTER(camellia_cbc5)
38 TEST_VECTOR_CRYPTER(camellia_cbc6)
39 TEST_VECTOR_CRYPTER(camellia_ctr1)
40 TEST_VECTOR_CRYPTER(camellia_ctr2)
41 TEST_VECTOR_CRYPTER(camellia_ctr3)
42 TEST_VECTOR_CRYPTER(camellia_ctr4)
43 TEST_VECTOR_CRYPTER(camellia_ctr5)
44 TEST_VECTOR_CRYPTER(camellia_ctr6)
45 TEST_VECTOR_CRYPTER(camellia_ctr7)
46 TEST_VECTOR_CRYPTER(camellia_ctr8)
47 TEST_VECTOR_CRYPTER(camellia_ctr9)
48 TEST_VECTOR_CRYPTER(cast1)
49 TEST_VECTOR_CRYPTER(des_cbc1)
50 TEST_VECTOR_CRYPTER(des_cbc2)
51 TEST_VECTOR_CRYPTER(des_ecb1)
52 TEST_VECTOR_CRYPTER(des_ecb2)
53 TEST_VECTOR_CRYPTER(des3_cbc1)
54 TEST_VECTOR_CRYPTER(des3_cbc2)
55 TEST_VECTOR_CRYPTER(idea1)
56 TEST_VECTOR_CRYPTER(idea2)
57 TEST_VECTOR_CRYPTER(null1)
58 TEST_VECTOR_CRYPTER(rc2_1)
59 TEST_VECTOR_CRYPTER(rc2_2)
60 TEST_VECTOR_CRYPTER(rc2_3)
61 TEST_VECTOR_CRYPTER(rc2_4)
62 TEST_VECTOR_CRYPTER(rc2_5)
63 TEST_VECTOR_CRYPTER(rc2_6)
64 TEST_VECTOR_CRYPTER(rc2_7)
65 TEST_VECTOR_CRYPTER(rc2_8)
66 TEST_VECTOR_CRYPTER(rc5_1)
67 TEST_VECTOR_CRYPTER(rc5_2)
68 TEST_VECTOR_CRYPTER(serpent_cbc1)
69 TEST_VECTOR_CRYPTER(serpent_cbc2)
70 TEST_VECTOR_CRYPTER(serpent_cbc3)
71 TEST_VECTOR_CRYPTER(serpent_cbc4)
72 TEST_VECTOR_CRYPTER(serpent_cbc5)
73 TEST_VECTOR_CRYPTER(serpent_cbc6)
74 TEST_VECTOR_CRYPTER(twofish_cbc1)
75 TEST_VECTOR_CRYPTER(twofish_cbc2)
76 TEST_VECTOR_CRYPTER(twofish_cbc3)
77
78 TEST_VECTOR_AEAD(aes_ccm1)
79 TEST_VECTOR_AEAD(aes_ccm2)
80 TEST_VECTOR_AEAD(aes_ccm3)
81 TEST_VECTOR_AEAD(aes_ccm4)
82 TEST_VECTOR_AEAD(aes_ccm5)
83 TEST_VECTOR_AEAD(aes_ccm6)
84 TEST_VECTOR_AEAD(aes_ccm7)
85 TEST_VECTOR_AEAD(aes_ccm8)
86 TEST_VECTOR_AEAD(aes_ccm9)
87 TEST_VECTOR_AEAD(aes_ccm10)
88 TEST_VECTOR_AEAD(aes_ccm11)
89 TEST_VECTOR_AEAD(aes_gcm1)
90 TEST_VECTOR_AEAD(aes_gcm2)
91 TEST_VECTOR_AEAD(aes_gcm3_1)
92 TEST_VECTOR_AEAD(aes_gcm3_2)
93 TEST_VECTOR_AEAD(aes_gcm3_3)
94 TEST_VECTOR_AEAD(aes_gcm4)
95 TEST_VECTOR_AEAD(aes_gcm7)
96 TEST_VECTOR_AEAD(aes_gcm8)
97 TEST_VECTOR_AEAD(aes_gcm9)
98 TEST_VECTOR_AEAD(aes_gcm10)
99 TEST_VECTOR_AEAD(aes_gcm13)
100 TEST_VECTOR_AEAD(aes_gcm14)
101 TEST_VECTOR_AEAD(aes_gcm15)
102 TEST_VECTOR_AEAD(aes_gcm16)
103
104 TEST_VECTOR_SIGNER(aes_xcbc_s1)
105 TEST_VECTOR_SIGNER(aes_xcbc_s2)
106 TEST_VECTOR_SIGNER(aes_xcbc_s3)
107 TEST_VECTOR_SIGNER(aes_xcbc_s4)
108 TEST_VECTOR_SIGNER(aes_xcbc_s5)
109 TEST_VECTOR_SIGNER(aes_cmac_s1)
110 TEST_VECTOR_SIGNER(aes_cmac_s2)
111 TEST_VECTOR_SIGNER(aes_cmac_s3)
112 TEST_VECTOR_SIGNER(aes_cmac_s4)
113 TEST_VECTOR_SIGNER(camellia_xcbc_s1)
114 TEST_VECTOR_SIGNER(md5_hmac_s1)
115 TEST_VECTOR_SIGNER(md5_hmac_s2)
116 TEST_VECTOR_SIGNER(md5_hmac_s3)
117 TEST_VECTOR_SIGNER(md5_hmac_s4)
118 TEST_VECTOR_SIGNER(sha1_hmac_s1)
119 TEST_VECTOR_SIGNER(sha1_hmac_s2)
120 TEST_VECTOR_SIGNER(sha1_hmac_s3)
121 TEST_VECTOR_SIGNER(sha1_hmac_s4)
122 TEST_VECTOR_SIGNER(sha1_hmac_s5)
123 TEST_VECTOR_SIGNER(sha1_hmac_s6)
124 TEST_VECTOR_SIGNER(sha256_hmac_s1)
125 TEST_VECTOR_SIGNER(sha256_hmac_s2)
126 TEST_VECTOR_SIGNER(sha256_hmac_s3)
127 TEST_VECTOR_SIGNER(sha384_hmac_s1)
128 TEST_VECTOR_SIGNER(sha384_hmac_s2)
129 TEST_VECTOR_SIGNER(sha384_hmac_s3)
130 TEST_VECTOR_SIGNER(sha512_hmac_s1)
131 TEST_VECTOR_SIGNER(sha512_hmac_s2)
132 TEST_VECTOR_SIGNER(sha512_hmac_s3)
133
134 TEST_VECTOR_HASHER(md2_1)
135 TEST_VECTOR_HASHER(md2_2)
136 TEST_VECTOR_HASHER(md2_3)
137 TEST_VECTOR_HASHER(md2_4)
138 TEST_VECTOR_HASHER(md2_5)
139 TEST_VECTOR_HASHER(md2_6)
140 TEST_VECTOR_HASHER(md2_7)
141 TEST_VECTOR_HASHER(md4_1)
142 TEST_VECTOR_HASHER(md4_2)
143 TEST_VECTOR_HASHER(md4_3)
144 TEST_VECTOR_HASHER(md4_4)
145 TEST_VECTOR_HASHER(md4_5)
146 TEST_VECTOR_HASHER(md4_6)
147 TEST_VECTOR_HASHER(md4_7)
148 TEST_VECTOR_HASHER(md5_1)
149 TEST_VECTOR_HASHER(md5_2)
150 TEST_VECTOR_HASHER(md5_3)
151 TEST_VECTOR_HASHER(md5_4)
152 TEST_VECTOR_HASHER(md5_5)
153 TEST_VECTOR_HASHER(md5_6)
154 TEST_VECTOR_HASHER(md5_7)
155 TEST_VECTOR_HASHER(sha1_1)
156 TEST_VECTOR_HASHER(sha1_2)
157 TEST_VECTOR_HASHER(sha1_3)
158 TEST_VECTOR_HASHER(sha1_4)
159 TEST_VECTOR_HASHER(sha224_1)
160 TEST_VECTOR_HASHER(sha224_2)
161 TEST_VECTOR_HASHER(sha224_3)
162 TEST_VECTOR_HASHER(sha256_1)
163 TEST_VECTOR_HASHER(sha256_2)
164 TEST_VECTOR_HASHER(sha256_3)
165 TEST_VECTOR_HASHER(sha384_1)
166 TEST_VECTOR_HASHER(sha384_2)
167 TEST_VECTOR_HASHER(sha384_3)
168 TEST_VECTOR_HASHER(sha512_1)
169 TEST_VECTOR_HASHER(sha512_2)
170 TEST_VECTOR_HASHER(sha512_3)
171
172 TEST_VECTOR_PRF(aes_xcbc_p1)
173 TEST_VECTOR_PRF(aes_xcbc_p2)
174 TEST_VECTOR_PRF(aes_xcbc_p3)
175 TEST_VECTOR_PRF(aes_xcbc_p4)
176 TEST_VECTOR_PRF(aes_xcbc_p5)
177 TEST_VECTOR_PRF(aes_xcbc_p6)
178 TEST_VECTOR_PRF(aes_xcbc_p7)
179 TEST_VECTOR_PRF(aes_cmac_p1)
180 TEST_VECTOR_PRF(aes_cmac_p2)
181 TEST_VECTOR_PRF(aes_cmac_p3)
182 TEST_VECTOR_PRF(aes_cmac_p4)
183 TEST_VECTOR_PRF(aes_cmac_p5)
184 TEST_VECTOR_PRF(aes_cmac_p6)
185 TEST_VECTOR_PRF(aes_cmac_p7)
186 TEST_VECTOR_PRF(camellia_xcbc_p1)
187 TEST_VECTOR_PRF(camellia_xcbc_p2)
188 TEST_VECTOR_PRF(camellia_xcbc_p3)
189 TEST_VECTOR_PRF(md5_hmac_p1)
190 TEST_VECTOR_PRF(md5_hmac_p2)
191 TEST_VECTOR_PRF(md5_hmac_p3)
192 TEST_VECTOR_PRF(md5_hmac_p4)
193 TEST_VECTOR_PRF(md5_hmac_p5)
194 TEST_VECTOR_PRF(md5_hmac_p6)
195 TEST_VECTOR_PRF(sha1_hmac_p1)
196 TEST_VECTOR_PRF(sha1_hmac_p2)
197 TEST_VECTOR_PRF(sha1_hmac_p3)
198 TEST_VECTOR_PRF(sha1_hmac_p4)
199 TEST_VECTOR_PRF(sha1_hmac_p5)
200 TEST_VECTOR_PRF(sha1_hmac_p6)
201 TEST_VECTOR_PRF(sha256_hmac_p1)
202 TEST_VECTOR_PRF(sha256_hmac_p2)
203 TEST_VECTOR_PRF(sha256_hmac_p3)
204 TEST_VECTOR_PRF(sha256_hmac_p4)
205 TEST_VECTOR_PRF(sha256_hmac_p5)
206 TEST_VECTOR_PRF(sha256_hmac_p6)
207 TEST_VECTOR_PRF(sha384_hmac_p1)
208 TEST_VECTOR_PRF(sha384_hmac_p2)
209 TEST_VECTOR_PRF(sha384_hmac_p3)
210 TEST_VECTOR_PRF(sha384_hmac_p4)
211 TEST_VECTOR_PRF(sha384_hmac_p5)
212 TEST_VECTOR_PRF(sha384_hmac_p6)
213 TEST_VECTOR_PRF(sha512_hmac_p1)
214 TEST_VECTOR_PRF(sha512_hmac_p2)
215 TEST_VECTOR_PRF(sha512_hmac_p3)
216 TEST_VECTOR_PRF(sha512_hmac_p4)
217 TEST_VECTOR_PRF(sha512_hmac_p5)
218 TEST_VECTOR_PRF(sha512_hmac_p6)
219 TEST_VECTOR_PRF(fips_prf_1)
220
221 TEST_VECTOR_RNG(rng_monobit_1)
222 TEST_VECTOR_RNG(rng_monobit_2)
223 TEST_VECTOR_RNG(rng_monobit_3)
224 TEST_VECTOR_RNG(rng_poker_1)
225 TEST_VECTOR_RNG(rng_poker_2)
226 TEST_VECTOR_RNG(rng_poker_3)
227 TEST_VECTOR_RNG(rng_runs_1)
228 TEST_VECTOR_RNG(rng_runs_2)
229 TEST_VECTOR_RNG(rng_runs_3)
230