]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - always print the actual hash driver name
authorEric Biggers <ebiggers@google.com>
Mon, 26 Oct 2020 16:17:00 +0000 (09:17 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Nov 2020 03:29:10 +0000 (14:29 +1100)
commit65a9b1ce4441c0d43d708510d05813c75600bb3b
treed77108dbdd2290367d2c456e3eb6631047dfcf56
parentca6cc9b0629cef34db22be80fd86d477ef941eba
crypto: testmgr - always print the actual hash driver name

When alg_test() is called from tcrypt.ko rather than from the algorithm
registration code, "driver" is actually the algorithm name, not the
driver name.  So it shouldn't be used in places where a driver name is
wanted, e.g. when reporting a test failure or when checking whether the
driver is the generic driver or not.

Fix this for the hash algorithm tests by getting the driver name from
the crypto_ahash or crypto_shash that actually got allocated.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c