aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/crypto/cryptd.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-07-08 09:39:43 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2020-07-16 21:49:05 +1000
commit9d4cafa5a04aeba68cc12de47ffcd975079e2f83 (patch)
treebcd185a9b96094033b07264cdde730c2210d5e74 /crypto/cryptd.c
parentmptcp: use sha256() instead of open coding (diff)
downloadwireguard-linux-9d4cafa5a04aeba68cc12de47ffcd975079e2f83.tar.xz
wireguard-linux-9d4cafa5a04aeba68cc12de47ffcd975079e2f83.zip
ASoC: cros_ec_codec: use sha256() instead of open coding
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(). Acked-by: Tzung-Bi Shih <tzungbi@google.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> 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> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/cryptd.c')
0 files changed, 0 insertions, 0 deletions