diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-05-04 05:00:17 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-11 03:06:36 -0400 |
commit | ebb3472f5cc9d4cffe3968dfd816978ab2dd06d6 (patch) | |
tree | c4bbc8567e69eb5e05e7b598b6b82d230ff1e5cc /crypto/testmgr.c | |
parent | 09e217844a2e2d02a950bc9c129f6fe423e426e0 (diff) |
crypto: testmgr - add test cases for CRC32
This adds a couple of test cases for CRC32 (not CRC32c) to
ensure that the generic and arch specific implementations
are in sync.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Steve Capper <steve.capper@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index d4639789de3a..18172526e16d 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -2320,6 +2320,15 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2320 | .alg = "compress_null", | 2320 | .alg = "compress_null", |
2321 | .test = alg_test_null, | 2321 | .test = alg_test_null, |
2322 | }, { | 2322 | }, { |
2323 | .alg = "crc32", | ||
2324 | .test = alg_test_hash, | ||
2325 | .suite = { | ||
2326 | .hash = { | ||
2327 | .vecs = crc32_tv_template, | ||
2328 | .count = CRC32_TEST_VECTORS | ||
2329 | } | ||
2330 | } | ||
2331 | }, { | ||
2323 | .alg = "crc32c", | 2332 | .alg = "crc32c", |
2324 | .test = alg_test_crc32c, | 2333 | .test = alg_test_crc32c, |
2325 | .fips_allowed = 1, | 2334 | .fips_allowed = 1, |