public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/libkcapi] f45: Apply pending upstream patch to fix the auxiliary test
Date: Thu, 20 Aug 2026 11:44:07 GMT [thread overview]
Message-ID: <178722624741.1.3520137304632115375.rpms-libkcapi-af20f4943914@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/libkcapi
Branch : f45
Commit : af20f4943914f131f03b8b26e864d929976690b5
Author : Ondrej Mosnáček <omosnacek@gmail.com>
Date : 2026-08-20T08:42:46+02:00
Stats : +39/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libkcapi/c/af20f4943914f131f03b8b26e864d929976690b5?branch=f45
Log:
Apply pending upstream patch to fix the auxiliary test
Apply one commit from GH PR#199, which makes the test pass on the
latest Rawhide kernel.
Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>
---
diff --git a/001-fix-test.patch b/001-fix-test.patch
new file mode 100644
index 0000000..83b692f
--- /dev/null
+++ b/001-fix-test.patch
@@ -0,0 +1,36 @@
+From 780d6fd0d94ba921724d6db64fc1aedb32d7cf46 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ondrej=20Mosn=C3=A1=C4=8Dek?= <omosnacek@gmail.com>
+Date: Wed, 19 Aug 2026 16:07:21 +0200
+Subject: [PATCH] test/kcapi-main: adjust the RNG tests for kernels 7.2+
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The following 7.2 kernel commits:
+- 89cfd38c788e ("crypto: drbg - Remove support for HMAC-SHA256 and HMAC-SHA384")
+- 6f88f41eeb7d ("crypto: drbg - Remove support for CTR_DRBG")
+removed support for the currently tested drbg_nopr_hmac_sha256 and
+drbg_nopr_ctr_aes256. The only ones left are drbg_nopr_hmac_sha256 and
+stdrng, so test those two instead.
+
+Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>
+---
+ test/kcapi-main.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/test/kcapi-main.c b/test/kcapi-main.c
+index a01140f..53824a1 100644
+--- a/test/kcapi-main.c
++++ b/test/kcapi-main.c
+@@ -690,9 +690,9 @@ static int auxiliary_tests(void)
+ kcapi_md_destroy(handle);
+
+
+- if (aux_test_rng("drbg_nopr_hmac_sha256", NULL, 0))
++ if (aux_test_rng("drbg_nopr_hmac_sha512", NULL, 0))
+ ret++;
+- if (aux_test_rng("drbg_nopr_ctr_aes256", NULL, 0))
++ if (aux_test_rng("stdrng", NULL, 0))
+ ret++;
+
+ return ret;
diff --git a/libkcapi.spec b/libkcapi.spec
index 0803877..fa9058a 100644
--- a/libkcapi.spec
+++ b/libkcapi.spec
@@ -128,6 +128,9 @@ Source1: https://www.chronox.de/%{name}/releases/%{version}/%{name}-%{ver
Source2: sha512hmac-openssl.sh
Source3: fipshmac-openssl.sh
+# From https://github.com/smuellerDD/libkcapi/pull/199/
+Patch: %{giturl}/commit/780d6fd0d94ba921724d6db64fc1aedb32d7cf46.patch#/001-fix-test.patch
+
BuildRequires: bash
BuildRequires: coreutils
BuildRequires: gcc
reply other threads:[~2026-08-20 11:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=178722624741.1.3520137304632115375.rpms-libkcapi-af20f4943914@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox