* [MPTCP] [PATCH 0/4] crypto: add sha256() function
@ 2020-07-07 18:58 ` Eric Biggers
0 siblings, 0 replies; 22+ messages in thread
From: Eric Biggers @ 2020-07-07 18:58 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 893 bytes --]
This series adds a function sha256() to the sha256 library so that users
who want to compute a hash in one step can just call sha256() instead of
sha256_init() + sha256_update() + sha256_final().
Patches 2-4 then convert some users to use it.
Eric Biggers (4):
crypto: lib/sha256 - add sha256() function
efi: use sha256() instead of open coding
mptcp: use sha256() instead of open coding
ASoC: cros_ec_codec: use sha256() instead of open coding
drivers/firmware/efi/embedded-firmware.c | 9 +++-----
include/crypto/sha.h | 1 +
lib/crypto/sha256.c | 10 +++++++++
net/mptcp/crypto.c | 15 +++----------
sound/soc/codecs/cros_ec_codec.c | 27 ++----------------------
5 files changed, 19 insertions(+), 43 deletions(-)
base-commit: 57c8aa43b9f272c382c253573c82be5cb68fe22d
--
2.27.0
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH 0/4] crypto: add sha256() function
@ 2020-07-07 18:58 ` Eric Biggers
0 siblings, 0 replies; 22+ messages in thread
From: Eric Biggers @ 2020-07-07 18:58 UTC (permalink / raw)
To: linux-crypto, Herbert Xu
Cc: alsa-devel, Ard Biesheuvel, Cheng-Yi Chiang,
Enric Balletbo i Serra, Guenter Roeck, Hans de Goede, linux-efi,
Mat Martineau, Matthieu Baerts, mptcp, Tzung-Bi Shih
This series adds a function sha256() to the sha256 library so that users
who want to compute a hash in one step can just call sha256() instead of
sha256_init() + sha256_update() + sha256_final().
Patches 2-4 then convert some users to use it.
Eric Biggers (4):
crypto: lib/sha256 - add sha256() function
efi: use sha256() instead of open coding
mptcp: use sha256() instead of open coding
ASoC: cros_ec_codec: use sha256() instead of open coding
drivers/firmware/efi/embedded-firmware.c | 9 +++-----
include/crypto/sha.h | 1 +
lib/crypto/sha256.c | 10 +++++++++
net/mptcp/crypto.c | 15 +++----------
sound/soc/codecs/cros_ec_codec.c | 27 ++----------------------
5 files changed, 19 insertions(+), 43 deletions(-)
base-commit: 57c8aa43b9f272c382c253573c82be5cb68fe22d
--
2.27.0
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH 0/4] crypto: add sha256() function
@ 2020-07-07 18:58 ` Eric Biggers
0 siblings, 0 replies; 22+ messages in thread
From: Eric Biggers @ 2020-07-07 18:58 UTC (permalink / raw)
To: linux-crypto, Herbert Xu
Cc: alsa-devel, linux-efi, Hans de Goede, Mat Martineau,
Guenter Roeck, Tzung-Bi Shih, Enric Balletbo i Serra,
Matthieu Baerts, mptcp, Ard Biesheuvel, Cheng-Yi Chiang
This series adds a function sha256() to the sha256 library so that users
who want to compute a hash in one step can just call sha256() instead of
sha256_init() + sha256_update() + sha256_final().
Patches 2-4 then convert some users to use it.
Eric Biggers (4):
crypto: lib/sha256 - add sha256() function
efi: use sha256() instead of open coding
mptcp: use sha256() instead of open coding
ASoC: cros_ec_codec: use sha256() instead of open coding
drivers/firmware/efi/embedded-firmware.c | 9 +++-----
include/crypto/sha.h | 1 +
lib/crypto/sha256.c | 10 +++++++++
net/mptcp/crypto.c | 15 +++----------
sound/soc/codecs/cros_ec_codec.c | 27 ++----------------------
5 files changed, 19 insertions(+), 43 deletions(-)
base-commit: 57c8aa43b9f272c382c253573c82be5cb68fe22d
--
2.27.0
^ permalink raw reply [flat|nested] 22+ messages in thread
* [MPTCP] [PATCH 1/4] crypto: lib/sha256 - add sha256() function
2020-07-07 18:58 ` Eric Biggers
(?)
@ 2020-07-07 18:58 ` Eric Biggers
-1 siblings, 0 replies; 22+ messages in thread
From: Eric Biggers @ 2020-07-07 18:58 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 1413 bytes --]
From: Eric Biggers <ebiggers(a)google.com>
Add a function sha256() which computes a SHA-256 digest in one step,
combining sha256_init() + sha256_update() + sha256_final().
This is similar to how we also have blake2s().
Signed-off-by: Eric Biggers <ebiggers(a)google.com>
---
include/crypto/sha.h | 1 +
lib/crypto/sha256.c | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/include/crypto/sha.h b/include/crypto/sha.h
index 10753ff71d46..4ff3da816630 100644
--- a/include/crypto/sha.h
+++ b/include/crypto/sha.h
@@ -147,6 +147,7 @@ static inline void sha256_init(struct sha256_state *sctx)
}
void sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len);
void sha256_final(struct sha256_state *sctx, u8 *out);
+void sha256(const u8 *data, unsigned int len, u8 *out);
static inline void sha224_init(struct sha256_state *sctx)
{
diff --git a/lib/crypto/sha256.c b/lib/crypto/sha256.c
index 2e621697c5c3..2321f6cb322f 100644
--- a/lib/crypto/sha256.c
+++ b/lib/crypto/sha256.c
@@ -280,4 +280,14 @@ void sha224_final(struct sha256_state *sctx, u8 *out)
}
EXPORT_SYMBOL(sha224_final);
+void sha256(const u8 *data, unsigned int len, u8 *out)
+{
+ struct sha256_state sctx;
+
+ sha256_init(&sctx);
+ sha256_update(&sctx, data, len);
+ sha256_final(&sctx, out);
+}
+EXPORT_SYMBOL(sha256);
+
MODULE_LICENSE("GPL");
--
2.27.0
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH 1/4] crypto: lib/sha256 - add sha256() function
@ 2020-07-07 18:58 ` Eric Biggers
0 siblings, 0 replies; 22+ messages in thread
From: Eric Biggers @ 2020-07-07 18:58 UTC (permalink / raw)
To: linux-crypto, Herbert Xu
Cc: alsa-devel, Ard Biesheuvel, Cheng-Yi Chiang,
Enric Balletbo i Serra, Guenter Roeck, Hans de Goede, linux-efi,
Mat Martineau, Matthieu Baerts, mptcp, Tzung-Bi Shih
From: Eric Biggers <ebiggers@google.com>
Add a function sha256() which computes a SHA-256 digest in one step,
combining sha256_init() + sha256_update() + sha256_final().
This is similar to how we also have blake2s().
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
include/crypto/sha.h | 1 +
lib/crypto/sha256.c | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/include/crypto/sha.h b/include/crypto/sha.h
index 10753ff71d46..4ff3da816630 100644
--- a/include/crypto/sha.h
+++ b/include/crypto/sha.h
@@ -147,6 +147,7 @@ static inline void sha256_init(struct sha256_state *sctx)
}
void sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len);
void sha256_final(struct sha256_state *sctx, u8 *out);
+void sha256(const u8 *data, unsigned int len, u8 *out);
static inline void sha224_init(struct sha256_state *sctx)
{
diff --git a/lib/crypto/sha256.c b/lib/crypto/sha256.c
index 2e621697c5c3..2321f6cb322f 100644
--- a/lib/crypto/sha256.c
+++ b/lib/crypto/sha256.c
@@ -280,4 +280,14 @@ void sha224_final(struct sha256_state *sctx, u8 *out)
}
EXPORT_SYMBOL(sha224_final);
+void sha256(const u8 *data, unsigned int len, u8 *out)
+{
+ struct sha256_state sctx;
+
+ sha256_init(&sctx);
+ sha256_update(&sctx, data, len);
+ sha256_final(&sctx, out);
+}
+EXPORT_SYMBOL(sha256);
+
MODULE_LICENSE("GPL");
--
2.27.0
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH 1/4] crypto: lib/sha256 - add sha256() function
@ 2020-07-07 18:58 ` Eric Biggers
0 siblings, 0 replies; 22+ messages in thread
From: Eric Biggers @ 2020-07-07 18:58 UTC (permalink / raw)
To: linux-crypto, Herbert Xu
Cc: alsa-devel, linux-efi, Hans de Goede, Mat Martineau,
Guenter Roeck, Tzung-Bi Shih, Enric Balletbo i Serra,
Matthieu Baerts, mptcp, Ard Biesheuvel, Cheng-Yi Chiang
From: Eric Biggers <ebiggers@google.com>
Add a function sha256() which computes a SHA-256 digest in one step,
combining sha256_init() + sha256_update() + sha256_final().
This is similar to how we also have blake2s().
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
include/crypto/sha.h | 1 +
lib/crypto/sha256.c | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/include/crypto/sha.h b/include/crypto/sha.h
index 10753ff71d46..4ff3da816630 100644
--- a/include/crypto/sha.h
+++ b/include/crypto/sha.h
@@ -147,6 +147,7 @@ static inline void sha256_init(struct sha256_state *sctx)
}
void sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len);
void sha256_final(struct sha256_state *sctx, u8 *out);
+void sha256(const u8 *data, unsigned int len, u8 *out);
static inline void sha224_init(struct sha256_state *sctx)
{
diff --git a/lib/crypto/sha256.c b/lib/crypto/sha256.c
index 2e621697c5c3..2321f6cb322f 100644
--- a/lib/crypto/sha256.c
+++ b/lib/crypto/sha256.c
@@ -280,4 +280,14 @@ void sha224_final(struct sha256_state *sctx, u8 *out)
}
EXPORT_SYMBOL(sha224_final);
+void sha256(const u8 *data, unsigned int len, u8 *out)
+{
+ struct sha256_state sctx;
+
+ sha256_init(&sctx);
+ sha256_update(&sctx, data, len);
+ sha256_final(&sctx, out);
+}
+EXPORT_SYMBOL(sha256);
+
MODULE_LICENSE("GPL");
--
2.27.0
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH 2/4] efi: use sha256() instead of open coding
2020-07-07 18:58 ` Eric Biggers
(?)
(?)
@ 2020-07-07 18:58 ` Eric Biggers
-1 siblings, 0 replies; 22+ messages in thread
From: Eric Biggers @ 2020-07-07 18:58 UTC (permalink / raw)
To: linux-crypto, Herbert Xu; +Cc: linux-efi, Ard Biesheuvel, Hans de Goede
From: Eric Biggers <ebiggers@google.com>
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().
Cc: linux-efi@vger.kernel.org
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
drivers/firmware/efi/embedded-firmware.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/firmware/efi/embedded-firmware.c b/drivers/firmware/efi/embedded-firmware.c
index a1b199de9006..e97a9c9d010c 100644
--- a/drivers/firmware/efi/embedded-firmware.c
+++ b/drivers/firmware/efi/embedded-firmware.c
@@ -37,9 +37,8 @@ static const struct dmi_system_id * const embedded_fw_table[] = {
static int __init efi_check_md_for_embedded_firmware(
efi_memory_desc_t *md, const struct efi_embedded_fw_desc *desc)
{
- struct sha256_state sctx;
struct efi_embedded_fw *fw;
- u8 sha256[32];
+ u8 hash[32];
u64 i, size;
u8 *map;
@@ -54,10 +53,8 @@ static int __init efi_check_md_for_embedded_firmware(
if (memcmp(map + i, desc->prefix, EFI_EMBEDDED_FW_PREFIX_LEN))
continue;
- sha256_init(&sctx);
- sha256_update(&sctx, map + i, desc->length);
- sha256_final(&sctx, sha256);
- if (memcmp(sha256, desc->sha256, 32) == 0)
+ sha256(map + i, desc->length, hash);
+ if (memcmp(hash, desc->sha256, 32) == 0)
break;
}
if ((i + desc->length) > size) {
--
2.27.0
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [MPTCP] [PATCH 3/4] mptcp: use sha256() instead of open coding
2020-07-07 18:58 ` Eric Biggers
@ 2020-07-07 18:58 ` Eric Biggers
-1 siblings, 0 replies; 22+ messages in thread
From: Eric Biggers @ 2020-07-07 18:58 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 2367 bytes --]
From: Eric Biggers <ebiggers(a)google.com>
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().
Cc: mptcp(a)lists.01.org
Cc: Mat Martineau <mathew.j.martineau(a)linux.intel.com>
Cc: Matthieu Baerts <matthieu.baerts(a)tessares.net>
Signed-off-by: Eric Biggers <ebiggers(a)google.com>
---
net/mptcp/crypto.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/net/mptcp/crypto.c b/net/mptcp/crypto.c
index 3d980713a9e2..82bd2b54d741 100644
--- a/net/mptcp/crypto.c
+++ b/net/mptcp/crypto.c
@@ -32,11 +32,8 @@ void mptcp_crypto_key_sha(u64 key, u32 *token, u64 *idsn)
{
__be32 mptcp_hashed_key[SHA256_DIGEST_WORDS];
__be64 input = cpu_to_be64(key);
- struct sha256_state state;
- sha256_init(&state);
- sha256_update(&state, (__force u8 *)&input, sizeof(input));
- sha256_final(&state, (u8 *)mptcp_hashed_key);
+ sha256((__force u8 *)&input, sizeof(input), (u8 *)mptcp_hashed_key);
if (token)
*token = be32_to_cpu(mptcp_hashed_key[0]);
@@ -47,7 +44,6 @@ void mptcp_crypto_key_sha(u64 key, u32 *token, u64 *idsn)
void mptcp_crypto_hmac_sha(u64 key1, u64 key2, u8 *msg, int len, void *hmac)
{
u8 input[SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE];
- struct sha256_state state;
u8 key1be[8];
u8 key2be[8];
int i;
@@ -67,13 +63,10 @@ void mptcp_crypto_hmac_sha(u64 key1, u64 key2, u8 *msg, int len, void *hmac)
memcpy(&input[SHA256_BLOCK_SIZE], msg, len);
- sha256_init(&state);
- sha256_update(&state, input, SHA256_BLOCK_SIZE + len);
-
/* emit sha256(K1 || msg) on the second input block, so we can
* reuse 'input' for the last hashing
*/
- sha256_final(&state, &input[SHA256_BLOCK_SIZE]);
+ sha256(input, SHA256_BLOCK_SIZE + len, &input[SHA256_BLOCK_SIZE]);
/* Prepare second part of hmac */
memset(input, 0x5C, SHA256_BLOCK_SIZE);
@@ -82,9 +75,7 @@ void mptcp_crypto_hmac_sha(u64 key1, u64 key2, u8 *msg, int len, void *hmac)
for (i = 0; i < 8; i++)
input[i + 8] ^= key2be[i];
- sha256_init(&state);
- sha256_update(&state, input, SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE);
- sha256_final(&state, (u8 *)hmac);
+ sha256(input, SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE, hmac);
}
#ifdef CONFIG_MPTCP_HMAC_TEST
--
2.27.0
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH 3/4] mptcp: use sha256() instead of open coding
@ 2020-07-07 18:58 ` Eric Biggers
0 siblings, 0 replies; 22+ messages in thread
From: Eric Biggers @ 2020-07-07 18:58 UTC (permalink / raw)
To: linux-crypto, Herbert Xu; +Cc: mptcp, Mat Martineau, Matthieu Baerts
From: Eric Biggers <ebiggers@google.com>
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().
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>
---
net/mptcp/crypto.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/net/mptcp/crypto.c b/net/mptcp/crypto.c
index 3d980713a9e2..82bd2b54d741 100644
--- a/net/mptcp/crypto.c
+++ b/net/mptcp/crypto.c
@@ -32,11 +32,8 @@ void mptcp_crypto_key_sha(u64 key, u32 *token, u64 *idsn)
{
__be32 mptcp_hashed_key[SHA256_DIGEST_WORDS];
__be64 input = cpu_to_be64(key);
- struct sha256_state state;
- sha256_init(&state);
- sha256_update(&state, (__force u8 *)&input, sizeof(input));
- sha256_final(&state, (u8 *)mptcp_hashed_key);
+ sha256((__force u8 *)&input, sizeof(input), (u8 *)mptcp_hashed_key);
if (token)
*token = be32_to_cpu(mptcp_hashed_key[0]);
@@ -47,7 +44,6 @@ void mptcp_crypto_key_sha(u64 key, u32 *token, u64 *idsn)
void mptcp_crypto_hmac_sha(u64 key1, u64 key2, u8 *msg, int len, void *hmac)
{
u8 input[SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE];
- struct sha256_state state;
u8 key1be[8];
u8 key2be[8];
int i;
@@ -67,13 +63,10 @@ void mptcp_crypto_hmac_sha(u64 key1, u64 key2, u8 *msg, int len, void *hmac)
memcpy(&input[SHA256_BLOCK_SIZE], msg, len);
- sha256_init(&state);
- sha256_update(&state, input, SHA256_BLOCK_SIZE + len);
-
/* emit sha256(K1 || msg) on the second input block, so we can
* reuse 'input' for the last hashing
*/
- sha256_final(&state, &input[SHA256_BLOCK_SIZE]);
+ sha256(input, SHA256_BLOCK_SIZE + len, &input[SHA256_BLOCK_SIZE]);
/* Prepare second part of hmac */
memset(input, 0x5C, SHA256_BLOCK_SIZE);
@@ -82,9 +75,7 @@ void mptcp_crypto_hmac_sha(u64 key1, u64 key2, u8 *msg, int len, void *hmac)
for (i = 0; i < 8; i++)
input[i + 8] ^= key2be[i];
- sha256_init(&state);
- sha256_update(&state, input, SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE);
- sha256_final(&state, (u8 *)hmac);
+ sha256(input, SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE, hmac);
}
#ifdef CONFIG_MPTCP_HMAC_TEST
--
2.27.0
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH 4/4] ASoC: cros_ec_codec: use sha256() instead of open coding
2020-07-07 18:58 ` Eric Biggers
@ 2020-07-07 18:58 ` Eric Biggers
-1 siblings, 0 replies; 22+ messages in thread
From: Eric Biggers @ 2020-07-07 18:58 UTC (permalink / raw)
To: linux-crypto, Herbert Xu
Cc: alsa-devel, Ard Biesheuvel, Cheng-Yi Chiang,
Enric Balletbo i Serra, Guenter Roeck, Tzung-Bi Shih
From: Eric Biggers <ebiggers@google.com>
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@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>
---
sound/soc/codecs/cros_ec_codec.c | 27 ++-------------------------
1 file changed, 2 insertions(+), 25 deletions(-)
diff --git a/sound/soc/codecs/cros_ec_codec.c b/sound/soc/codecs/cros_ec_codec.c
index 8d45c628e988..ab009c7dfdf4 100644
--- a/sound/soc/codecs/cros_ec_codec.c
+++ b/sound/soc/codecs/cros_ec_codec.c
@@ -103,28 +103,6 @@ static int send_ec_host_command(struct cros_ec_device *ec_dev, uint32_t cmd,
return ret;
}
-static int calculate_sha256(struct cros_ec_codec_priv *priv,
- uint8_t *buf, uint32_t size, uint8_t *digest)
-{
- struct sha256_state sctx;
-
- sha256_init(&sctx);
- sha256_update(&sctx, buf, size);
- sha256_final(&sctx, digest);
-
-#ifdef DEBUG
- {
- char digest_str[65];
-
- bin2hex(digest_str, digest, 32);
- digest_str[64] = 0;
- dev_dbg(priv->dev, "hash=%s\n", digest_str);
- }
-#endif
-
- return 0;
-}
-
static int dmic_get_gain(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
@@ -782,9 +760,8 @@ static int wov_hotword_model_put(struct snd_kcontrol *kcontrol,
if (IS_ERR(buf))
return PTR_ERR(buf);
- ret = calculate_sha256(priv, buf, size, digest);
- if (ret)
- goto leave;
+ sha256(buf, size, digest);
+ dev_dbg(priv->dev, "hash=%*phN\n", SHA256_DIGEST_SIZE, digest);
p.cmd = EC_CODEC_WOV_GET_LANG;
ret = send_ec_host_command(priv->ec_device, EC_CMD_EC_CODEC_WOV,
--
2.27.0
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH 4/4] ASoC: cros_ec_codec: use sha256() instead of open coding
@ 2020-07-07 18:58 ` Eric Biggers
0 siblings, 0 replies; 22+ messages in thread
From: Eric Biggers @ 2020-07-07 18:58 UTC (permalink / raw)
To: linux-crypto, Herbert Xu
Cc: alsa-devel, Tzung-Bi Shih, Guenter Roeck, Enric Balletbo i Serra,
Ard Biesheuvel, Cheng-Yi Chiang
From: Eric Biggers <ebiggers@google.com>
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@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>
---
sound/soc/codecs/cros_ec_codec.c | 27 ++-------------------------
1 file changed, 2 insertions(+), 25 deletions(-)
diff --git a/sound/soc/codecs/cros_ec_codec.c b/sound/soc/codecs/cros_ec_codec.c
index 8d45c628e988..ab009c7dfdf4 100644
--- a/sound/soc/codecs/cros_ec_codec.c
+++ b/sound/soc/codecs/cros_ec_codec.c
@@ -103,28 +103,6 @@ static int send_ec_host_command(struct cros_ec_device *ec_dev, uint32_t cmd,
return ret;
}
-static int calculate_sha256(struct cros_ec_codec_priv *priv,
- uint8_t *buf, uint32_t size, uint8_t *digest)
-{
- struct sha256_state sctx;
-
- sha256_init(&sctx);
- sha256_update(&sctx, buf, size);
- sha256_final(&sctx, digest);
-
-#ifdef DEBUG
- {
- char digest_str[65];
-
- bin2hex(digest_str, digest, 32);
- digest_str[64] = 0;
- dev_dbg(priv->dev, "hash=%s\n", digest_str);
- }
-#endif
-
- return 0;
-}
-
static int dmic_get_gain(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
@@ -782,9 +760,8 @@ static int wov_hotword_model_put(struct snd_kcontrol *kcontrol,
if (IS_ERR(buf))
return PTR_ERR(buf);
- ret = calculate_sha256(priv, buf, size, digest);
- if (ret)
- goto leave;
+ sha256(buf, size, digest);
+ dev_dbg(priv->dev, "hash=%*phN\n", SHA256_DIGEST_SIZE, digest);
p.cmd = EC_CODEC_WOV_GET_LANG;
ret = send_ec_host_command(priv->ec_device, EC_CMD_EC_CODEC_WOV,
--
2.27.0
^ permalink raw reply related [flat|nested] 22+ messages in thread
* Re: [PATCH 1/4] crypto: lib/sha256 - add sha256() function
2020-07-07 18:58 ` Eric Biggers
(?)
(?)
@ 2020-07-07 22:34 ` kernel test robot
-1 siblings, 0 replies; 22+ messages in thread
From: kernel test robot @ 2020-07-07 22:34 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3218 bytes --]
Hi Eric,
I love your patch! Yet something to improve:
[auto build test ERROR on 57c8aa43b9f272c382c253573c82be5cb68fe22d]
url: https://github.com/0day-ci/linux/commits/Eric-Biggers/crypto-add-sha256-function/20200708-030304
base: 57c8aa43b9f272c382c253573c82be5cb68fe22d
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> arch/sparc/crypto/sha256_glue.c:159:25: error: 'sha256' redeclared as different kind of symbol
159 | static struct shash_alg sha256 = {
| ^~~~~~
In file included from arch/sparc/crypto/sha256_glue.c:19:
include/crypto/sha.h:150:6: note: previous declaration of 'sha256' was here
150 | void sha256(const u8 *data, unsigned int len, u8 *out);
| ^~~~~~
In file included from arch/sparc/crypto/sha256_glue.c:241:
arch/sparc/crypto/crop_devid.c:11:34: warning: 'crypto_opcode_match' defined but not used [-Wunused-const-variable=]
11 | static const struct of_device_id crypto_opcode_match[] = {
| ^~~~~~~~~~~~~~~~~~~
vim +/sha256 +159 arch/sparc/crypto/sha256_glue.c
86c93b24ef49d6 David S. Miller 2012-08-19 158
86c93b24ef49d6 David S. Miller 2012-08-19 @159 static struct shash_alg sha256 = {
86c93b24ef49d6 David S. Miller 2012-08-19 160 .digestsize = SHA256_DIGEST_SIZE,
86c93b24ef49d6 David S. Miller 2012-08-19 161 .init = sha256_sparc64_init,
86c93b24ef49d6 David S. Miller 2012-08-19 162 .update = sha256_sparc64_update,
86c93b24ef49d6 David S. Miller 2012-08-19 163 .final = sha256_sparc64_final,
86c93b24ef49d6 David S. Miller 2012-08-19 164 .export = sha256_sparc64_export,
86c93b24ef49d6 David S. Miller 2012-08-19 165 .import = sha256_sparc64_import,
86c93b24ef49d6 David S. Miller 2012-08-19 166 .descsize = sizeof(struct sha256_state),
86c93b24ef49d6 David S. Miller 2012-08-19 167 .statesize = sizeof(struct sha256_state),
86c93b24ef49d6 David S. Miller 2012-08-19 168 .base = {
86c93b24ef49d6 David S. Miller 2012-08-19 169 .cra_name = "sha256",
86c93b24ef49d6 David S. Miller 2012-08-19 170 .cra_driver_name= "sha256-sparc64",
1080362425793f David S. Miller 2012-09-15 171 .cra_priority = SPARC_CR_OPCODE_PRIORITY,
86c93b24ef49d6 David S. Miller 2012-08-19 172 .cra_blocksize = SHA256_BLOCK_SIZE,
86c93b24ef49d6 David S. Miller 2012-08-19 173 .cra_module = THIS_MODULE,
86c93b24ef49d6 David S. Miller 2012-08-19 174 }
86c93b24ef49d6 David S. Miller 2012-08-19 175 };
86c93b24ef49d6 David S. Miller 2012-08-19 176
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 66255 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH 4/4] ASoC: cros_ec_codec: use sha256() instead of open coding
2020-07-07 18:58 ` Eric Biggers
@ 2020-07-08 2:29 ` Tzung-Bi Shih
-1 siblings, 0 replies; 22+ messages in thread
From: Tzung-Bi Shih @ 2020-07-08 2:29 UTC (permalink / raw)
To: Eric Biggers
Cc: linux-crypto, Herbert Xu, ALSA development, Ard Biesheuvel,
Cheng-Yi Chiang, Enric Balletbo i Serra, Guenter Roeck
On Wed, Jul 8, 2020 at 2:59 AM Eric Biggers <ebiggers@kernel.org> wrote:
>
> From: Eric Biggers <ebiggers@google.com>
>
> 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@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>
Acked-by: Tzung-Bi Shih <tzungbi@google.com>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH 4/4] ASoC: cros_ec_codec: use sha256() instead of open coding
@ 2020-07-08 2:29 ` Tzung-Bi Shih
0 siblings, 0 replies; 22+ messages in thread
From: Tzung-Bi Shih @ 2020-07-08 2:29 UTC (permalink / raw)
To: Eric Biggers
Cc: ALSA development, Herbert Xu, Guenter Roeck, linux-crypto,
Enric Balletbo i Serra, Ard Biesheuvel, Cheng-Yi Chiang
On Wed, Jul 8, 2020 at 2:59 AM Eric Biggers <ebiggers@kernel.org> wrote:
>
> From: Eric Biggers <ebiggers@google.com>
>
> 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@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>
Acked-by: Tzung-Bi Shih <tzungbi@google.com>
^ permalink raw reply [flat|nested] 22+ messages in thread
* [MPTCP] Re: [PATCH 0/4] crypto: add sha256() function
2020-07-07 18:58 ` Eric Biggers
(?)
@ 2020-07-08 5:47 ` Ard Biesheuvel
-1 siblings, 0 replies; 22+ messages in thread
From: Ard Biesheuvel @ 2020-07-08 5:47 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]
On Tue, 7 Jul 2020 at 21:59, Eric Biggers <ebiggers(a)kernel.org> wrote:
>
> This series adds a function sha256() to the sha256 library so that users
> who want to compute a hash in one step can just call sha256() instead of
> sha256_init() + sha256_update() + sha256_final().
>
> Patches 2-4 then convert some users to use it.
>
> Eric Biggers (4):
> crypto: lib/sha256 - add sha256() function
> efi: use sha256() instead of open coding
> mptcp: use sha256() instead of open coding
> ASoC: cros_ec_codec: use sha256() instead of open coding
>
For the series,
Reviewed-by: Ard Biesheuvel <ardb(a)kernel.org>
Feel free to take the EFI patch through the crypto tree.
> drivers/firmware/efi/embedded-firmware.c | 9 +++-----
> include/crypto/sha.h | 1 +
> lib/crypto/sha256.c | 10 +++++++++
> net/mptcp/crypto.c | 15 +++----------
> sound/soc/codecs/cros_ec_codec.c | 27 ++----------------------
> 5 files changed, 19 insertions(+), 43 deletions(-)
>
>
> base-commit: 57c8aa43b9f272c382c253573c82be5cb68fe22d
> --
> 2.27.0
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH 0/4] crypto: add sha256() function
@ 2020-07-08 5:47 ` Ard Biesheuvel
0 siblings, 0 replies; 22+ messages in thread
From: Ard Biesheuvel @ 2020-07-08 5:47 UTC (permalink / raw)
To: Eric Biggers
Cc: Linux Crypto Mailing List, Herbert Xu, ALSA development,
Cheng-Yi Chiang, Enric Balletbo i Serra, Guenter Roeck,
Hans de Goede, linux-efi, Mat Martineau, Matthieu Baerts, mptcp,
Tzung-Bi Shih
On Tue, 7 Jul 2020 at 21:59, Eric Biggers <ebiggers@kernel.org> wrote:
>
> This series adds a function sha256() to the sha256 library so that users
> who want to compute a hash in one step can just call sha256() instead of
> sha256_init() + sha256_update() + sha256_final().
>
> Patches 2-4 then convert some users to use it.
>
> Eric Biggers (4):
> crypto: lib/sha256 - add sha256() function
> efi: use sha256() instead of open coding
> mptcp: use sha256() instead of open coding
> ASoC: cros_ec_codec: use sha256() instead of open coding
>
For the series,
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Feel free to take the EFI patch through the crypto tree.
> drivers/firmware/efi/embedded-firmware.c | 9 +++-----
> include/crypto/sha.h | 1 +
> lib/crypto/sha256.c | 10 +++++++++
> net/mptcp/crypto.c | 15 +++----------
> sound/soc/codecs/cros_ec_codec.c | 27 ++----------------------
> 5 files changed, 19 insertions(+), 43 deletions(-)
>
>
> base-commit: 57c8aa43b9f272c382c253573c82be5cb68fe22d
> --
> 2.27.0
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH 0/4] crypto: add sha256() function
@ 2020-07-08 5:47 ` Ard Biesheuvel
0 siblings, 0 replies; 22+ messages in thread
From: Ard Biesheuvel @ 2020-07-08 5:47 UTC (permalink / raw)
To: Eric Biggers
Cc: ALSA development, linux-efi, Herbert Xu, Hans de Goede,
Mat Martineau, Guenter Roeck, Linux Crypto Mailing List,
Enric Balletbo i Serra, Matthieu Baerts, Tzung-Bi Shih, mptcp,
Cheng-Yi Chiang
On Tue, 7 Jul 2020 at 21:59, Eric Biggers <ebiggers@kernel.org> wrote:
>
> This series adds a function sha256() to the sha256 library so that users
> who want to compute a hash in one step can just call sha256() instead of
> sha256_init() + sha256_update() + sha256_final().
>
> Patches 2-4 then convert some users to use it.
>
> Eric Biggers (4):
> crypto: lib/sha256 - add sha256() function
> efi: use sha256() instead of open coding
> mptcp: use sha256() instead of open coding
> ASoC: cros_ec_codec: use sha256() instead of open coding
>
For the series,
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Feel free to take the EFI patch through the crypto tree.
> drivers/firmware/efi/embedded-firmware.c | 9 +++-----
> include/crypto/sha.h | 1 +
> lib/crypto/sha256.c | 10 +++++++++
> net/mptcp/crypto.c | 15 +++----------
> sound/soc/codecs/cros_ec_codec.c | 27 ++----------------------
> 5 files changed, 19 insertions(+), 43 deletions(-)
>
>
> base-commit: 57c8aa43b9f272c382c253573c82be5cb68fe22d
> --
> 2.27.0
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* [MPTCP] Re: [PATCH 0/4] crypto: add sha256() function
2020-07-07 18:58 ` Eric Biggers
(?)
@ 2020-07-08 11:01 ` Hans de Goede
-1 siblings, 0 replies; 22+ messages in thread
From: Hans de Goede @ 2020-07-08 11:01 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 1209 bytes --]
Hi,
On 7/7/20 8:58 PM, Eric Biggers wrote:
> This series adds a function sha256() to the sha256 library so that users
> who want to compute a hash in one step can just call sha256() instead of
> sha256_init() + sha256_update() + sha256_final().
>
> Patches 2-4 then convert some users to use it.
>
> Eric Biggers (4):
> crypto: lib/sha256 - add sha256() function
> efi: use sha256() instead of open coding
> mptcp: use sha256() instead of open coding
> ASoC: cros_ec_codec: use sha256() instead of open coding
>
> drivers/firmware/efi/embedded-firmware.c | 9 +++-----
> include/crypto/sha.h | 1 +
> lib/crypto/sha256.c | 10 +++++++++
> net/mptcp/crypto.c | 15 +++----------
> sound/soc/codecs/cros_ec_codec.c | 27 ++----------------------
> 5 files changed, 19 insertions(+), 43 deletions(-)
>
>
> base-commit: 57c8aa43b9f272c382c253573c82be5cb68fe22d
I've done some quick tests on this series to make sure that
the efi embedded-firmware support did not regress.
That still works fine, so this series is;
Tested-by: Hans de Goede <hdegoede(a)redhat.com>
Regards,
Hans
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH 0/4] crypto: add sha256() function
@ 2020-07-08 11:01 ` Hans de Goede
0 siblings, 0 replies; 22+ messages in thread
From: Hans de Goede @ 2020-07-08 11:01 UTC (permalink / raw)
To: Eric Biggers, linux-crypto, Herbert Xu
Cc: alsa-devel, Ard Biesheuvel, Cheng-Yi Chiang,
Enric Balletbo i Serra, Guenter Roeck, linux-efi, Mat Martineau,
Matthieu Baerts, mptcp, Tzung-Bi Shih
Hi,
On 7/7/20 8:58 PM, Eric Biggers wrote:
> This series adds a function sha256() to the sha256 library so that users
> who want to compute a hash in one step can just call sha256() instead of
> sha256_init() + sha256_update() + sha256_final().
>
> Patches 2-4 then convert some users to use it.
>
> Eric Biggers (4):
> crypto: lib/sha256 - add sha256() function
> efi: use sha256() instead of open coding
> mptcp: use sha256() instead of open coding
> ASoC: cros_ec_codec: use sha256() instead of open coding
>
> drivers/firmware/efi/embedded-firmware.c | 9 +++-----
> include/crypto/sha.h | 1 +
> lib/crypto/sha256.c | 10 +++++++++
> net/mptcp/crypto.c | 15 +++----------
> sound/soc/codecs/cros_ec_codec.c | 27 ++----------------------
> 5 files changed, 19 insertions(+), 43 deletions(-)
>
>
> base-commit: 57c8aa43b9f272c382c253573c82be5cb68fe22d
I've done some quick tests on this series to make sure that
the efi embedded-firmware support did not regress.
That still works fine, so this series is;
Tested-by: Hans de Goede <hdegoede@redhat.com>
Regards,
Hans
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH 0/4] crypto: add sha256() function
@ 2020-07-08 11:01 ` Hans de Goede
0 siblings, 0 replies; 22+ messages in thread
From: Hans de Goede @ 2020-07-08 11:01 UTC (permalink / raw)
To: Eric Biggers, linux-crypto, Herbert Xu
Cc: alsa-devel, linux-efi, Tzung-Bi Shih, Mat Martineau,
Guenter Roeck, Enric Balletbo i Serra, Matthieu Baerts, mptcp,
Ard Biesheuvel, Cheng-Yi Chiang
Hi,
On 7/7/20 8:58 PM, Eric Biggers wrote:
> This series adds a function sha256() to the sha256 library so that users
> who want to compute a hash in one step can just call sha256() instead of
> sha256_init() + sha256_update() + sha256_final().
>
> Patches 2-4 then convert some users to use it.
>
> Eric Biggers (4):
> crypto: lib/sha256 - add sha256() function
> efi: use sha256() instead of open coding
> mptcp: use sha256() instead of open coding
> ASoC: cros_ec_codec: use sha256() instead of open coding
>
> drivers/firmware/efi/embedded-firmware.c | 9 +++-----
> include/crypto/sha.h | 1 +
> lib/crypto/sha256.c | 10 +++++++++
> net/mptcp/crypto.c | 15 +++----------
> sound/soc/codecs/cros_ec_codec.c | 27 ++----------------------
> 5 files changed, 19 insertions(+), 43 deletions(-)
>
>
> base-commit: 57c8aa43b9f272c382c253573c82be5cb68fe22d
I've done some quick tests on this series to make sure that
the efi embedded-firmware support did not regress.
That still works fine, so this series is;
Tested-by: Hans de Goede <hdegoede@redhat.com>
Regards,
Hans
^ permalink raw reply [flat|nested] 22+ messages in thread
* [MPTCP] Re: [PATCH 3/4] mptcp: use sha256() instead of open coding
2020-07-07 18:58 ` Eric Biggers
@ 2020-07-08 11:22 ` Matthieu Baerts
-1 siblings, 0 replies; 22+ messages in thread
From: Matthieu Baerts @ 2020-07-08 11:22 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 692 bytes --]
Hi Eric,
On 07/07/2020 20:58, Eric Biggers wrote:
> From: Eric Biggers <ebiggers(a)google.com>
>
> 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().
>
> Cc: mptcp(a)lists.01.org
> Cc: Mat Martineau <mathew.j.martineau(a)linux.intel.com>
> Cc: Matthieu Baerts <matthieu.baerts(a)tessares.net>
> Signed-off-by: Eric Biggers <ebiggers(a)google.com>
Thank you for this simplification and update MPTCP code, it's clearer!
Acked-by: Matthieu Baerts <matthieu.baerts(a)tessares.net>
Cheers,
Matt
--
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH 3/4] mptcp: use sha256() instead of open coding
@ 2020-07-08 11:22 ` Matthieu Baerts
0 siblings, 0 replies; 22+ messages in thread
From: Matthieu Baerts @ 2020-07-08 11:22 UTC (permalink / raw)
To: Eric Biggers, linux-crypto, Herbert Xu; +Cc: mptcp, Mat Martineau
Hi Eric,
On 07/07/2020 20:58, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
>
> 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().
>
> 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>
Thank you for this simplification and update MPTCP code, it's clearer!
Acked-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Cheers,
Matt
--
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2020-07-08 11:22 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 18:58 [MPTCP] [PATCH 0/4] crypto: add sha256() function Eric Biggers
2020-07-07 18:58 ` Eric Biggers
2020-07-07 18:58 ` Eric Biggers
2020-07-07 18:58 ` [PATCH 2/4] efi: use sha256() instead of open coding Eric Biggers
2020-07-07 18:58 ` [PATCH 4/4] ASoC: cros_ec_codec: " Eric Biggers
2020-07-07 18:58 ` Eric Biggers
2020-07-08 2:29 ` Tzung-Bi Shih
2020-07-08 2:29 ` Tzung-Bi Shih
2020-07-07 18:58 [MPTCP] [PATCH 1/4] crypto: lib/sha256 - add sha256() function Eric Biggers
2020-07-07 18:58 ` Eric Biggers
2020-07-07 18:58 ` Eric Biggers
2020-07-07 22:34 ` kernel test robot
2020-07-07 18:58 [MPTCP] [PATCH 3/4] mptcp: use sha256() instead of open coding Eric Biggers
2020-07-07 18:58 ` Eric Biggers
2020-07-08 5:47 [MPTCP] Re: [PATCH 0/4] crypto: add sha256() function Ard Biesheuvel
2020-07-08 5:47 ` Ard Biesheuvel
2020-07-08 5:47 ` Ard Biesheuvel
2020-07-08 11:01 [MPTCP] " Hans de Goede
2020-07-08 11:01 ` Hans de Goede
2020-07-08 11:01 ` Hans de Goede
2020-07-08 11:22 [MPTCP] Re: [PATCH 3/4] mptcp: use sha256() instead of open coding Matthieu Baerts
2020-07-08 11:22 ` Matthieu Baerts
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.