crypto: testmgr - Add a test case for import()/export()
authorWang, Rui Y <rui.y.wang@intel.com>
Wed, 3 Feb 2016 10:26:57 +0000 (18:26 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 6 Feb 2016 07:33:27 +0000 (15:33 +0800)
commit018ba95c71c0b0ef7abc8d584bf556ffd1f5b230
treeb40361ec7f29cc999558dc6674d7be1a32c3622e
parent1e0a6e1747b760b95b05ede659c8a6e5eb9b8acb
crypto: testmgr - Add a test case for import()/export()

Modify __test_hash() so that hash import/export can be tested
from within the kernel. The test is unconditionally done when
a struct hash_testvec has its .np > 1.

v3: make the test unconditional
v2: Leverage template[i].np as suggested by Tim Chen

Signed-off-by: Rui Wang <rui.y.wang@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c