On Wed, Jul 8, 2020 at 2:59 AM Eric Biggers <ebiggers@xxxxxxxxxx> wrote: > > From: Eric Biggers <ebiggers@xxxxxxxxxx> > > 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@xxxxxxxxxxxxxxxx > Cc: Ard Biesheuvel <ardb@xxxxxxxxxx> > Cc: Cheng-Yi Chiang <cychiang@xxxxxxxxxxxx> > Cc: Enric Balletbo i Serra <enric.balletbo@xxxxxxxxxxxxx> > Cc: Guenter Roeck <groeck@xxxxxxxxxxxx> > Cc: Tzung-Bi Shih <tzungbi@xxxxxxxxxx> > Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx> Acked-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>