[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20251113135506.18594-1-joepduin12@gmail.com>
Date: Thu, 13 Nov 2025 13:55:06 +0000
From: Joep Duin <joepduin12@...il.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: "David S . Miller" <davem@...emloft.net>,
linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org,
Joep Duin <165405982+joepduin@...rs.noreply.github.com>,
Joep Duin <joepduin12@...il.com>
Subject: [PATCH] fix MIC buffer sizing in selftest
From: Joep Duin <165405982+joepduin@...rs.noreply.github.com>
Signed-off-by: Joep Duin <joepduin12@...il.com>
---
crypto/krb5/selftest.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/crypto/krb5/selftest.c b/crypto/krb5/selftest.c
index 4519c572d37e..82b2b6a3607d 100644
--- a/crypto/krb5/selftest.c
+++ b/crypto/krb5/selftest.c
@@ -427,10 +427,10 @@ static int krb5_test_one_mic(const struct krb5_mic_test *test, void *buf)
memcpy(buf + offset, plain.data, plain.len);
/* Generate a MIC generation request. */
- sg_init_one(sg, buf, 1024);
+ sg_init_one(sg, buf, message_len);
- ret = crypto_krb5_get_mic(krb5, ci, NULL, sg, 1, 1024,
- krb5->cksum_len, plain.len);
+ ret = crypto_krb5_get_mic(krb5, ci, NULL, sg, 1, message_len,
+ krb5->cksum_len, plain.len);
if (ret < 0) {
CHECK(1);
pr_warn("Get MIC failed %d\n", ret);
--
2.51.2
Powered by blists - more mailing lists