diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /crypto/testmgr.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index fa8c8f78c8d4..b6b93d416351 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -6,6 +6,13 @@ | |||
6 | * Copyright (c) 2007 Nokia Siemens Networks | 6 | * Copyright (c) 2007 Nokia Siemens Networks |
7 | * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au> | 7 | * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au> |
8 | * | 8 | * |
9 | * Updated RFC4106 AES-GCM testing. | ||
10 | * Authors: Aidan O'Mahony (aidan.o.mahony@intel.com) | ||
11 | * Adrian Hoban <adrian.hoban@intel.com> | ||
12 | * Gabriele Paoloni <gabriele.paoloni@intel.com> | ||
13 | * Tadeusz Struk (tadeusz.struk@intel.com) | ||
14 | * Copyright (c) 2010, Intel Corporation. | ||
15 | * | ||
9 | * This program is free software; you can redistribute it and/or modify it | 16 | * This program is free software; you can redistribute it and/or modify it |
10 | * under the terms of the GNU General Public License as published by the Free | 17 | * under the terms of the GNU General Public License as published by the Free |
11 | * Software Foundation; either version 2 of the License, or (at your option) | 18 | * Software Foundation; either version 2 of the License, or (at your option) |
@@ -2070,6 +2077,7 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2070 | }, { | 2077 | }, { |
2071 | .alg = "ghash", | 2078 | .alg = "ghash", |
2072 | .test = alg_test_hash, | 2079 | .test = alg_test_hash, |
2080 | .fips_allowed = 1, | ||
2073 | .suite = { | 2081 | .suite = { |
2074 | .hash = { | 2082 | .hash = { |
2075 | .vecs = ghash_tv_template, | 2083 | .vecs = ghash_tv_template, |
@@ -2211,6 +2219,22 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2211 | } | 2219 | } |
2212 | } | 2220 | } |
2213 | }, { | 2221 | }, { |
2222 | .alg = "ofb(aes)", | ||
2223 | .test = alg_test_skcipher, | ||
2224 | .fips_allowed = 1, | ||
2225 | .suite = { | ||
2226 | .cipher = { | ||
2227 | .enc = { | ||
2228 | .vecs = aes_ofb_enc_tv_template, | ||
2229 | .count = AES_OFB_ENC_TEST_VECTORS | ||
2230 | }, | ||
2231 | .dec = { | ||
2232 | .vecs = aes_ofb_dec_tv_template, | ||
2233 | .count = AES_OFB_DEC_TEST_VECTORS | ||
2234 | } | ||
2235 | } | ||
2236 | } | ||
2237 | }, { | ||
2214 | .alg = "pcbc(fcrypt)", | 2238 | .alg = "pcbc(fcrypt)", |
2215 | .test = alg_test_skcipher, | 2239 | .test = alg_test_skcipher, |
2216 | .suite = { | 2240 | .suite = { |
@@ -2242,6 +2266,23 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2242 | } | 2266 | } |
2243 | } | 2267 | } |
2244 | }, { | 2268 | }, { |
2269 | .alg = "rfc4106(gcm(aes))", | ||
2270 | .test = alg_test_aead, | ||
2271 | .suite = { | ||
2272 | .aead = { | ||
2273 | .enc = { | ||
2274 | .vecs = aes_gcm_rfc4106_enc_tv_template, | ||
2275 | .count = AES_GCM_4106_ENC_TEST_VECTORS | ||
2276 | }, | ||
2277 | .dec = { | ||
2278 | .vecs = aes_gcm_rfc4106_dec_tv_template, | ||
2279 | .count = AES_GCM_4106_DEC_TEST_VECTORS | ||
2280 | } | ||
2281 | } | ||
2282 | } | ||
2283 | }, { | ||
2284 | |||
2285 | |||
2245 | .alg = "rfc4309(ccm(aes))", | 2286 | .alg = "rfc4309(ccm(aes))", |
2246 | .test = alg_test_aead, | 2287 | .test = alg_test_aead, |
2247 | .fips_allowed = 1, | 2288 | .fips_allowed = 1, |
@@ -2429,6 +2470,7 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2429 | }, { | 2470 | }, { |
2430 | .alg = "xts(aes)", | 2471 | .alg = "xts(aes)", |
2431 | .test = alg_test_skcipher, | 2472 | .test = alg_test_skcipher, |
2473 | .fips_allowed = 1, | ||
2432 | .suite = { | 2474 | .suite = { |
2433 | .cipher = { | 2475 | .cipher = { |
2434 | .enc = { | 2476 | .enc = { |