diff options
author | Eric Biggers <ebiggers@google.com> | 2020-05-02 20:24:21 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-05-08 07:32:16 +0200 |
commit | ac0ad93df7136e27d2a9c5ec554547695f581d0e (patch) | |
tree | 315b2ec5ba6d42a94649271d3831a014f2eb9b28 /arch | |
parent | ASoC: cros_ec_codec: use crypto_shash_tfm_digest() (diff) | |
download | linux-ac0ad93df7136e27d2a9c5ec554547695f581d0e.tar.xz linux-ac0ad93df7136e27d2a9c5ec554547695f581d0e.zip |
mptcp: use SHA256_BLOCK_SIZE, not SHA_MESSAGE_BYTES
In preparation for naming the SHA-1 stuff in <linux/cryptohash.h>
properly and moving it to a more appropriate header, fix the HMAC-SHA256
code in mptcp_crypto_hmac_sha() to use SHA256_BLOCK_SIZE instead of
"SHA_MESSAGE_BYTES" which is actually the SHA-1 block size.
(Fortunately these are both 64 bytes, so this wasn't a "real" bug...)
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: mptcp@lists.01.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions