diff options
| author | Eric Biggers <ebiggers@google.com> | 2020-07-08 09:39:43 -0700 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-07-16 21:49:05 +1000 |
| commit | 9d4cafa5a04aeba68cc12de47ffcd975079e2f83 (patch) | |
| tree | bcd185a9b96094033b07264cdde730c2210d5e74 /crypto/algapi.c | |
| parent | mptcp: use sha256() instead of open coding (diff) | |
| download | linux-9d4cafa5a04aeba68cc12de47ffcd975079e2f83.tar.gz 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/algapi.c')
0 files changed, 0 insertions, 0 deletions
