crypto: testmgr - Print akcipher algorithm name
When an akcipher test fails, we don't know which algorithm failed because the name is not printed. This patch fixes this. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
aa6416ee46
commit
15226e4804
|
@ -2034,6 +2034,8 @@ free_xbuf:
|
||||||
static int test_akcipher(struct crypto_akcipher *tfm, const char *alg,
|
static int test_akcipher(struct crypto_akcipher *tfm, const char *alg,
|
||||||
struct akcipher_testvec *vecs, unsigned int tcount)
|
struct akcipher_testvec *vecs, unsigned int tcount)
|
||||||
{
|
{
|
||||||
|
const char *algo =
|
||||||
|
crypto_tfm_alg_driver_name(crypto_akcipher_tfm(tfm));
|
||||||
int ret, i;
|
int ret, i;
|
||||||
|
|
||||||
for (i = 0; i < tcount; i++) {
|
for (i = 0; i < tcount; i++) {
|
||||||
|
@ -2041,8 +2043,8 @@ static int test_akcipher(struct crypto_akcipher *tfm, const char *alg,
|
||||||
if (!ret)
|
if (!ret)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
pr_err("alg: akcipher: test failed on vector %d, err=%d\n",
|
pr_err("alg: akcipher: test %d failed for %s, err=%d\n",
|
||||||
i + 1, ret);
|
i + 1, algo, ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue