summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2021-04-30 11:10:31 -0500
committerSuman Anna <s-anna@ti.com>2021-05-14 07:52:09 -0500
commitecd2f720734174deed2ec1e2a8c1bc64cd5701c8 (patch)
treed48c60272deafcca7de4d64e661169880a85a00e /crypto
parentc32d4cb7d1fb8f044924bb2a941c0796c3eaba26 (diff)
crypto: tcrypt - Fix speed test case for hash to set up sg buffer size equal to payload
Fix speed test case to set up sg buffer size equal to payload. Signed-off-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Gowtham Tammana <g-tammana@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com> Reviewed-by: Tero Kristo <kristo@kernel.org>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/tcrypt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 8609174e036e..1ef5f696e93f 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1107,6 +1107,7 @@ static void test_ahash_speed_common(const char *algo, unsigned int secs,
"(%5u byte blocks,%5u bytes per update,%4u updates): ",
i, speed[i].blen, speed[i].plen, speed[i].blen / speed[i].plen);
+ sg_set_buf(sg, tvmem[0], speed[i].plen);
ahash_request_set_crypt(req, sg, output, speed[i].plen);
if (secs) {