Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gpg2 for openSUSE:Factory checked in 
at 2025-06-10 08:59:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gpg2 (Old)
 and      /work/SRC/openSUSE:Factory/.gpg2.new.19631 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gpg2"

Tue Jun 10 08:59:27 2025 rev:186 rq:1283637 version:2.5.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/gpg2/gpg2.changes        2025-06-04 
20:27:00.921159645 +0200
+++ /work/SRC/openSUSE:Factory/.gpg2.new.19631/gpg2.changes     2025-06-10 
08:59:52.705990433 +0200
@@ -1,0 +2,7 @@
+Fri Jun  6 10:06:29 UTC 2025 - Michal Hrusecky <mic...@hrusecky.net>
+
+- Fix problems with decoding Curve25519
+- Added patch
+  * gnupg-agent-fix-for-prefix-0x40-in-the-point-representation.patch
+
+-------------------------------------------------------------------

New:
----
  gnupg-agent-fix-for-prefix-0x40-in-the-point-representation.patch

BETA DEBUG BEGIN:
  New:- Added patch
  * gnupg-agent-fix-for-prefix-0x40-in-the-point-representation.patch
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gpg2.spec ++++++
--- /var/tmp/diff_new_pack.9V4nBZ/_old  2025-06-10 08:59:53.522024106 +0200
+++ /var/tmp/diff_new_pack.9V4nBZ/_new  2025-06-10 08:59:53.522024106 +0200
@@ -47,6 +47,8 @@
 Patch12:        gnupg-revert-rfc4880bis.patch
 #PATCH-FIX-OPENSUSE Do not pull revision info from GIT when autoconf is run
 Patch13:        gnupg-nobetasuffix.patch
+#PATCH-FIX-UPSTREAM 
gnupg-agent-fix-for-prefix-0x40-in-the-point-representation.patch -- based on 
commit fde915af1cf4b9166b68023899d41057baf95958
+Patch14:        
gnupg-agent-fix-for-prefix-0x40-in-the-point-representation.patch
 
 BuildRequires:  expect
 BuildRequires:  fdupes


++++++ gnupg-agent-fix-for-prefix-0x40-in-the-point-representation.patch ++++++
>From fde915af1cf4b9166b68023899d41057baf95958 Mon Sep 17 00:00:00 2001
From: NIIBE Yutaka <gni...@fsij.org>
Date: Fri, 6 Jun 2025 14:13:05 +0900
Subject: [PATCH] agent: Fix for the prefix 0x40 in the point representation.

* agent/pkdecrypt.c (ECC_CURVE25519_INDEX): New.
(ecc_pgp_kem_decap): Handle the prefix 0x40 for Curve25519.

--

GnuPG-bug-id: 7676
Signed-off-by: NIIBE Yutaka <gni...@fsij.org>
---
 agent/pkdecrypt.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/agent/pkdecrypt.c b/agent/pkdecrypt.c
index d712e7f28..99896939b 100644
--- a/agent/pkdecrypt.c
+++ b/agent/pkdecrypt.c
@@ -43,6 +43,9 @@ struct ecc_params
   int scalar_reverse;
 };
 
+/* The first entry must be Curve25519, to handle the prefix of 0x40 in
+   OpenPGP. */
+#define ECC_CURVE25519_INDEX 0
 static const struct ecc_params ecc_table[] =
   {
     {
@@ -484,6 +487,13 @@ ecc_pgp_kem_decap (ctrl_t ctrl, gcry_sexp_t s_skey0,
     }
   *r_ecc = ecc;
 
+  if (ecc == &ecc_table[ECC_CURVE25519_INDEX]
+      && ecc_point_len == ecc->point_len + 1 && *ecc_ct == 0x40)
+    {
+      ecc_ct++;
+      ecc_point_len--;
+    }
+
   if (ecc->point_len != ecc_point_len)
     {
       if (opt.verbose)
-- 
2.30.2

Reply via email to