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>
This commit is contained in:
Ard Biesheuvel
2015-05-04 11:00:17 +02:00
committed by Herbert Xu
parent 09e217844a
commit ebb3472f5c
2 changed files with 443 additions and 0 deletions

View File

@@ -2319,6 +2319,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,