diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-05-04 11:00:17 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-11 15:06:36 +0800 |
commit | ebb3472f5cc9d4cffe3968dfd816978ab2dd06d6 (patch) | |
tree | c4bbc8567e69eb5e05e7b598b6b82d230ff1e5cc /crypto/testmgr.c | |
parent | 09e217844a2e2d02a950bc9c129f6fe423e426e0 (diff) | |
download | op-kernel-dev-ebb3472f5cc9d4cffe3968dfd816978ab2dd06d6.zip op-kernel-dev-ebb3472f5cc9d4cffe3968dfd816978ab2dd06d6.tar.gz |
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 d463978..1817252 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2320,6 +2320,15 @@ static const struct alg_test_desc alg_test_descs[] = { .alg = "compress_null", .test = alg_test_null, }, { + .alg = "crc32", + .test = alg_test_hash, + .suite = { + .hash = { + .vecs = crc32_tv_template, + .count = CRC32_TEST_VECTORS + } + } + }, { .alg = "crc32c", .test = alg_test_crc32c, .fips_allowed = 1, |