]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: use sha256() instead of open coding
authorEric Biggers <ebiggers@google.com>
Wed, 8 Jul 2020 16:39:42 +0000 (09:39 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Jul 2020 11:49:05 +0000 (21:49 +1000)
commit57567bfba74af7c51dc9408a00f954ab233f42ba
tree3224f8dcdd70409b95f67104da91023986ff944c
parent3e8284fc619bf8eb1a37377acef796a76661786a
mptcp: 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().

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Cc: mptcp@lists.01.org
Cc: Mat Martineau <mathew.j.martineau@linux.intel.com>
Cc: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
net/mptcp/crypto.c