Re: [PATCH 11/20] crypto: s5p-sss - use crypto_shash_tfm_digest()

From
Krzysztof Kozlowski <krzk@kernel.org>
Date
2020-05-05 14:19:29
Reply to
Eric Biggers, 2020-05-02
On Fri, May 01, 2020 at 10:31:13PM -0700, Eric Biggers wrote:
From: Eric Biggers <redacted>

Instead of manually allocating a 'struct shash_desc' on the stack and
calling crypto_shash_digest(), switch to using the new helper function
crypto_shash_tfm_digest() which does this for us.

Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Vladimir Zapolskiy <vz@mleia.com>
Cc: Kamil Konieczny <redacted>
Signed-off-by: Eric Biggers <redacted>
---
 drivers/crypto/s5p-sss.c | 39 ++++++---------------------------------
 1 file changed, 6 insertions(+), 33 deletions(-)
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof
Thread (28 messages) 28 messages, 8 authors, last reply 2020-05-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help