summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorHoria Geantă <horia.geanta@nxp.com>2020-02-05 12:19:58 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2020-02-13 17:05:26 +0800
commite6bb3b52c9de9630b3e622aada1290fc7c2dcb28 (patch)
treeee2e98834269572b27d10b7c12f8ed19ea4c8658 /crypto/tcrypt.c
parent3fd30da7c44e1bcc9f71ed685c8b67bd2a1273ca (diff)
downloadlinux-crypto-e6bb3b52c9de9630b3e622aada1290fc7c2dcb28.tar.gz
linux-crypto-e6bb3b52c9de9630b3e622aada1290fc7c2dcb28.zip
crypto: tcrypt - fix printed skcipher [a]sync mode
When running tcrypt skcipher speed tests, logs contain things like: testing speed of async ecb(des3_ede) (ecb(des3_ede-generic)) encryption or: testing speed of async ecb(aes) (ecb(aes-ce)) encryption The algorithm implementations are sync, not async. Fix this inaccuracy. Fixes: 8cf60d81f2c15 ("crypto: tcrypt - Use skcipher") Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r--crypto/tcrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index f42f486e..ba0b7702 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1514,8 +1514,8 @@ static void test_skcipher_speed(const char *algo, int enc, unsigned int secs,
return;
}
- pr_info("\ntesting speed of async %s (%s) %s\n", algo,
- get_driver_name(crypto_skcipher, tfm), e);
+ pr_info("\ntesting speed of %s %s (%s) %s\n", async ? "async" : "sync",
+ algo, get_driver_name(crypto_skcipher, tfm), e);
req = skcipher_request_alloc(tfm, GFP_KERNEL);
if (!req) {