diff options
author | Tim Chen <tim.c.chen@linux.intel.com> | 2013-05-01 15:52:51 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-05-24 05:55:27 -0400 |
commit | 39761214eefc6b070f29402aa1165f24d789b3f7 (patch) | |
tree | 5e6e2de1c4890abaa4581362ac971cd1a4e4541b /crypto/testmgr.c | |
parent | 0b95a7f85718adcbba36407ef88bba0a7379ed03 (diff) |
crypto: crct10dif - Simple correctness and speed test for CRCT10DIF hash
These are simple tests to do sanity check of CRC T10 DIF hash. The
correctness of the transform can be checked with the command
modprobe tcrypt mode=47
The speed of the transform can be evaluated with the command
modprobe tcrypt mode=320
Set the cpu frequency to constant and turn turbo off when running the
speed test so the frequency governor will not tweak the frequency and
affects the measurements.
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 5823735cf381..f19a392ade78 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -1974,6 +1974,16 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1974 | } | 1974 | } |
1975 | } | 1975 | } |
1976 | }, { | 1976 | }, { |
1977 | .alg = "crct10dif", | ||
1978 | .test = alg_test_hash, | ||
1979 | .fips_allowed = 1, | ||
1980 | .suite = { | ||
1981 | .hash = { | ||
1982 | .vecs = crct10dif_tv_template, | ||
1983 | .count = CRCT10DIF_TEST_VECTORS | ||
1984 | } | ||
1985 | } | ||
1986 | }, { | ||
1977 | .alg = "cryptd(__driver-cbc-aes-aesni)", | 1987 | .alg = "cryptd(__driver-cbc-aes-aesni)", |
1978 | .test = alg_test_null, | 1988 | .test = alg_test_null, |
1979 | .fips_allowed = 1, | 1989 | .fips_allowed = 1, |