public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libkcapi] rawhide: Apply pending upstream patch to fix the auxiliary test
@ 2026-08-20 11:36
0 siblings, 0 replies; only message in thread
From: @ 2026-08-20 11:36 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libkcapi
Branch : rawhide
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=rawhide
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-20 11:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-20 11:36 [rpms/libkcapi] rawhide: Apply pending upstream patch to fix the auxiliary test
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox