8 Jul
2020
8 Jul
'20
4:29 a.m.
On Wed, Jul 8, 2020 at 2:59 AM Eric Biggers ebiggers@kernel.org wrote:
From: Eric Biggers ebiggers@google.com
Now that there's a function that calculates the SHA-256 digest of a buffer in one step, use it instead of sha256_init() + sha256_update() + sha256_final().
Also simplify the code by inlining calculate_sha256() into its caller and switching a debug log statement to use %*phN instead of bin2hex().
Cc: alsa-devel@alsa-project.org Cc: Ard Biesheuvel ardb@kernel.org Cc: Cheng-Yi Chiang cychiang@chromium.org Cc: Enric Balletbo i Serra enric.balletbo@collabora.com Cc: Guenter Roeck groeck@chromium.org Cc: Tzung-Bi Shih tzungbi@google.com Signed-off-by: Eric Biggers ebiggers@google.com
Acked-by: Tzung-Bi Shih tzungbi@google.com