crypto: crct10dif - Simple correctness and speed test for CRCT10DIF hash
authorTim Chen <tim.c.chen@linux.intel.com>
Wed, 1 May 2013 19:52:51 +0000 (12:52 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 May 2013 09:55:27 +0000 (17:55 +0800)
commit39761214eefc6b070f29402aa1165f24d789b3f7
tree5e6e2de1c4890abaa4581362ac971cd1a4e4541b
parent0b95a7f85718adcbba36407ef88bba0a7379ed03
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>
crypto/tcrypt.c
crypto/testmgr.c
crypto/testmgr.h