]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ec65d95bcac3f8ae8b66970b69d54601ec6aceb
tree5e6e2de1c4890abaa4581362ac971cd1a4e4541b
parent3f39396fa417edcfeb53ea89b8303a8b5775bb53
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