From: Frank Ranner <frank.ranner@intel.com>
To: ltp@lists.linux.it
Cc: Frank Ranner <frank.ranner@intel.com>,
Eric Biggers <ebiggers@google.com>
Subject: [LTP] [PATCH ltp] testcases/kernel/crypto/crypto_user02.c: try non-generic hmac names first
Date: Wed, 12 Aug 2026 13:27:37 +0200 [thread overview]
Message-ID: <20260812112737.2222475-1-frank.ranner@intel.com> (raw)
Probe plain hmac(<hash>) driver names before the legacy *-generic
variants when selecting a viable algorithm for crypto_user02.
Newer kernels commonly expose non-generic algorithm names while
no longer registering the *-generic aliases, which made the current
candidate list fall through to TCONF even when usable algorithms
were present.
Keeping both forms preserves compatibility with older kernels while
avoiding kernel-version checks in the testcase logic.
Signed-off-by: Frank Ranner <frank.ranner@intel.com>
---
testcases/kernel/crypto/crypto_user02.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/testcases/kernel/crypto/crypto_user02.c b/testcases/kernel/crypto/crypto_user02.c
index 88ae800aa..c08d35c84 100644
--- a/testcases/kernel/crypto/crypto_user02.c
+++ b/testcases/kernel/crypto/crypto_user02.c
@@ -35,6 +35,20 @@
* The first algorithm, that fullfils the criteria is used for the test.
*/
static const char * const ALGORITHM_CANDIDATES[] = {
+ "hmac(sha1)",
+ "hmac(sha224)",
+ "hmac(sha256)",
+ "hmac(sha384)",
+ "hmac(md5)",
+ "hmac(sm3)",
+ "hmac(sha512)",
+ "hmac(rmd160)",
+ "hmac(sha3-224)",
+ "hmac(sha3-256)",
+ "hmac(sha3-384)",
+ "hmac(sha3-512)",
+ "hmac(streebog256)",
+ "hmac(streebog512)",
"hmac(sha1-generic)",
"hmac(sha224-generic)",
"hmac(sha256-generic)",
--
2.53.0
---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2026-08-12 12:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-12 11:27 Frank Ranner [this message]
2026-08-12 13:09 ` [LTP] testcases/kernel/crypto/crypto_user02.c: try non-generic hmac names first linuxtestproject.agent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260812112737.2222475-1-frank.ranner@intel.com \
--to=frank.ranner@intel.com \
--cc=ebiggers@google.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.