Control: tags 1119687 + patch
Control: tags 1119687 + pending

Dear maintainer,

I've prepared an NMU for python-pgpy (versioned as 0.6.0-1.5) and
uploaded it to DELAYED/5. Please feel free to tell me if I
should cancel it.

Regards.


--
WBR, wRAR
diffstat for python-pgpy-0.6.0 python-pgpy-0.6.0

 changelog                 |    7 +++++++
 patches/group_order.patch |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 patches/series            |    1 +
 3 files changed, 54 insertions(+)

diff -Nru python-pgpy-0.6.0/debian/changelog python-pgpy-0.6.0/debian/changelog
--- python-pgpy-0.6.0/debian/changelog	2024-12-07 15:21:07.000000000 +0500
+++ python-pgpy-0.6.0/debian/changelog	2025-11-04 20:12:13.000000000 +0500
@@ -1,3 +1,10 @@
+python-pgpy (0.6.0-1.5) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix compatibility with python3-cryptography >= 45 (Closes: #1119687).
+
+ -- Andrey Rakhmatullin <[email protected]>  Tue, 04 Nov 2025 20:12:13 +0500
+
 python-pgpy (0.6.0-1.4) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru python-pgpy-0.6.0/debian/patches/group_order.patch python-pgpy-0.6.0/debian/patches/group_order.patch
--- python-pgpy-0.6.0/debian/patches/group_order.patch	1970-01-01 05:00:00.000000000 +0500
+++ python-pgpy-0.6.0/debian/patches/group_order.patch	2025-11-04 20:09:20.000000000 +0500
@@ -0,0 +1,46 @@
+From 5cdda87f74bcbb1dd7d29bb49b6a0ee67e41a7ce Mon Sep 17 00:00:00 2001
+From: OPNA2608 <[email protected]>
+Date: Thu, 10 Jul 2025 17:51:02 +0200
+Subject: [PATCH] pgpy/_curves.py: Fix compat with current cryptography
+
+Curves must now specify their group_order.
+---
+ pgpy/_curves.py | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/pgpy/_curves.py b/pgpy/_curves.py
+index 14f25284..91e7dbb0 100644
+--- a/pgpy/_curves.py
++++ b/pgpy/_curves.py
+@@ -75,26 +75,31 @@ class Ed25519(object):
+     class BrainpoolP256R1(ec.EllipticCurve):
+         name = 'brainpoolP256r1'
+         key_size = 256
++        group_order = 0xa9fb57dba1eea9bc3e660a909d838d718c397aa3b561a6f7901e0e82974856a7
+ 
+ 
+     class BrainpoolP384R1(ec.EllipticCurve):  # noqa: E303
+         name = 'brainpoolP384r1'
+         key_size = 384
++        group_order = 0x8cb91e82a3386d280f5d6f7e50e641df152f7109ed5456b31f166e6cac0425a7cf3ab6af6b7fc3103b883202e9046565
+ 
+ 
+     class BrainpoolP512R1(ec.EllipticCurve):  # noqa: E303
+         name = 'brainpoolP512r1'
+         key_size = 512
++        group_order = 0xaadd9db8dbe9c48b3fd4e6ae33c9fc07cb308db3b3c9d20ed6639cca70330870553e5c414ca92619418661197fac10471db1d381085ddaddb58796829ca90069
+ 
+ 
+     class X25519(ec.EllipticCurve):  # noqa: E303
+         name = 'X25519'
+         key_size = 256
++        group_order = 0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed
+ 
+ 
+     class Ed25519(ec.EllipticCurve):  # noqa: E303
+         name = 'ed25519'
+         key_size = 256
++        group_order = 0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed
+ 
+ 
+ # add these curves to the _CURVE_TYPES list
diff -Nru python-pgpy-0.6.0/debian/patches/series python-pgpy-0.6.0/debian/patches/series
--- python-pgpy-0.6.0/debian/patches/series	2024-12-07 15:21:07.000000000 +0500
+++ python-pgpy-0.6.0/debian/patches/series	2025-11-04 20:10:11.000000000 +0500
@@ -3,3 +3,4 @@
 tests-key-size.patch
 drop-use-of-imghdr.patch
 do-not-fail-on-GPGMEError-on-verify.patch
+group_order.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to