public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Fabio Valentini <decathorpe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-sequoia-openpgp] rawhide: Backport support for ripemd160 with the ossl backend
Date: Wed, 23 Sep 2026 13:40:45 GMT	[thread overview]
Message-ID: <179017084509.1.15873276467916110389.rpms-rust-sequoia-openpgp-3f70f3854b14@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-sequoia-openpgp
Branch : rawhide
Commit : 3f70f3854b149558c733a554780504fe0fd029bc
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-09-23T15:27:07+02:00
Stats  : +53/-6 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-sequoia-openpgp/c/3f70f3854b149558c733a554780504fe0fd029bc?branch=rawhide

Log:
Backport support for ripemd160 with the ossl backend

---
diff --git a/0001-reintroduce-ripemd160-support-for-the-ossl-backend.patch b/0001-reintroduce-ripemd160-support-for-the-ossl-backend.patch
new file mode 100644
index 0000000..3093d72
--- /dev/null
+++ b/0001-reintroduce-ripemd160-support-for-the-ossl-backend.patch
@@ -0,0 +1,34 @@
+From c76fe69fbb5d26f590658c804a179aef76e07525 Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Wed, 23 Sep 2026 15:10:07 +0200
+Subject: [PATCH] reintroduce ripemd160 support for the ossl backend
+
+Partial backport without Cargo.toml / Cargo.lock changes of:
+https://gitlab.com/sequoia-pgp/sequoia/-/commit/28ee4bfd
+---
+ src/crypto/backend/openssl/hash.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/crypto/backend/openssl/hash.rs b/src/crypto/backend/openssl/hash.rs
+index 2259532..e33120c 100644
+--- a/src/crypto/backend/openssl/hash.rs
++++ b/src/crypto/backend/openssl/hash.rs
+@@ -9,6 +9,7 @@ impl TryFrom<HashAlgorithm> for DigestAlg {
+     fn try_from(a: HashAlgorithm) -> std::result::Result<Self, Self::Error> {
+         match a {
+             HashAlgorithm::MD5 => Ok(DigestAlg::Md5),
++            HashAlgorithm::RipeMD => Ok(DigestAlg::RipeMd160),
+             HashAlgorithm::SHA1 => Ok(DigestAlg::Sha1),
+             HashAlgorithm::SHA256 => Ok(DigestAlg::Sha2_256),
+             HashAlgorithm::SHA384 => Ok(DigestAlg::Sha2_384),
+@@ -18,7 +19,6 @@ impl TryFrom<HashAlgorithm> for DigestAlg {
+             HashAlgorithm::SHA3_512 => Ok(DigestAlg::Sha3_512),
+             HashAlgorithm::Private(_)
+                 | HashAlgorithm::Unknown (_)
+-                | HashAlgorithm::RipeMD
+                 => Err(crate::Error::UnsupportedHashAlgorithm(a)),
+         }
+     }
+-- 
+2.55.0
+

diff --git a/rust-sequoia-openpgp.spec b/rust-sequoia-openpgp.spec
index 760e0a7..73c4b28 100644
--- a/rust-sequoia-openpgp.spec
+++ b/rust-sequoia-openpgp.spec
@@ -15,8 +15,11 @@ Source:         %{crates_source}
 # Automatically generated patch to strip dependencies and normalize metadata
 Patch:          sequoia-openpgp-fix-metadata-auto.diff
 # Manually created patch for downstream crate metadata changes
+# * bump ossl dependency to v1.5.3 for RipeMD160 support
 # * drop unused, benchmark-only criterion dev-dependency
 Patch:          sequoia-openpgp-fix-metadata.diff
+# https://gitlab.com/sequoia-pgp/sequoia/-/commit/28ee4bfd
+Patch:          0001-reintroduce-ripemd160-support-for-the-ossl-backend.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 

diff --git a/rust2rpm.toml b/rust2rpm.toml
index a673191..093e453 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,5 +1,6 @@
 [package]
 cargo-toml-patch-comments = [
+    "bump ossl dependency to v1.5.3 for RipeMD160 support",
     "drop unused, benchmark-only criterion dev-dependency",
 ]
 

diff --git a/sequoia-openpgp-fix-metadata-auto.diff b/sequoia-openpgp-fix-metadata-auto.diff
index 9a7dc2b..08e02a2 100644
--- a/sequoia-openpgp-fix-metadata-auto.diff
+++ b/sequoia-openpgp-fix-metadata-auto.diff
@@ -1,5 +1,5 @@
 --- sequoia-openpgp-2.4.1/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ sequoia-openpgp-2.4.1/Cargo.toml	2026-09-07T13:39:31.549198+00:00
++++ sequoia-openpgp-2.4.1/Cargo.toml	2026-09-23T13:07:38.792891+00:00
 @@ -79,8 +79,6 @@
      "dep:cipher",
      "dep:cx448",

diff --git a/sequoia-openpgp-fix-metadata.diff b/sequoia-openpgp-fix-metadata.diff
index 7a6632d..f084963 100644
--- a/sequoia-openpgp-fix-metadata.diff
+++ b/sequoia-openpgp-fix-metadata.diff
@@ -1,13 +1,22 @@
 --- sequoia-openpgp-2.4.1/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ sequoia-openpgp-2.4.1/Cargo.toml	2026-09-07T13:39:31.551003+00:00
-@@ -522,10 +522,6 @@
++++ sequoia-openpgp-2.4.1/Cargo.toml	2026-09-23T13:07:42.921078+00:00
+@@ -421,7 +421,7 @@
+ optional = true
+ 
+ [dependencies.ossl]
+-version = "1.5.2"
++version = "1.5.3"
+ features = [
+     "openssl-sys",
+     "rfc9580",
+@@ -521,10 +521,6 @@
+ [dependencies.xxhash-rust]
  version = "0.8"
  features = ["xxh3"]
- 
+-
 -[dev-dependencies.criterion]
 -version = "0.5"
 -features = ["html_reports"]
--
+ 
  [dev-dependencies.quickcheck]
  version = "1"
- default-features = false

                 reply	other threads:[~2026-09-23 13:40 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=179017084509.1.15873276467916110389.rpms-rust-sequoia-openpgp-3f70f3854b14@fedoraproject.org \
    --to=decathorpe@gmail.com \
    --cc=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