summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-05-04 11:00:17 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-11 15:06:36 +0800
commitebb3472f5cc9d4cffe3968dfd816978ab2dd06d6 (patch)
treec4bbc8567e69eb5e05e7b598b6b82d230ff1e5cc /crypto/testmgr.c
parent09e217844a2e2d02a950bc9c129f6fe423e426e0 (diff)
downloadlwn-ebb3472f5cc9d4cffe3968dfd816978ab2dd06d6.tar.gz
lwn-ebb3472f5cc9d4cffe3968dfd816978ab2dd06d6.zip
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.c9
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[] = {
.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,