From patchwork Fri Dec 4 19:17:23 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 107473 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23.1796411977971437406 for ; Fri, 04 Dec 2026 11:19:38 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=SrBjqYcm; spf=pass (domain: konsulko.com, ip: 209.85.210.181, mailfrom: tim.orling@konsulko.com) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-8b5e5e64494so810769b3a.1 for ; Fri, 04 Dec 2026 11:19:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1796411977; x=1797016777; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=riLYNL+2pM3a5/9LD/KlPSGiDh19genQGBxzEjcg6vY=; b=SrBjqYcmF9clyPg8OUwXzl2K4oenLdNhKok61vAEbD/r2tFDoTM09PbDOxTJKe8+j4 9IMG+TwC8Llet206uD+GnSiLUrwDXS9vzD+8h0z2YQ3ex0wrc8IhJ5lPZ3vQXSaQHVtG b55vSeJ9HAQQwGDL97Adepwp0UuX6U15qTlWs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796411977; x=1797016777; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=riLYNL+2pM3a5/9LD/KlPSGiDh19genQGBxzEjcg6vY=; b=SY9yaPEq4EEOitO7scNE6piJia4IU2ENwfa/EdNoXhM2CfMkUWwrR9b2AD7kGuKvj+ F5+5RR68NUKpc0YtcuXIFJ8NIQCuHAkMXm+V3Ee2+gnL97/DexJVpTPf3RMt3Kk3aCmm Q7rE+Rw0E8cbgJbIgNi+UHtCkM2Ed4RNs+Vi0f6El9pLd9QFy9wk8i+uL3JHU4CsNQ3h sNsVQe4MEl03M+A2ofsX8WQJ/Wi7kPjDBz4y8iu2SOFnBDmdT1ieVqyTOAM5nEX8IpSN Nnq77xq0JoB/H0Ihb5fLRI6dDnyQlML1WkOfiDggwNBq0iOedkeiGhpZ80HLDQJpatQx sssw== X-Gm-Message-State: APuU4Z+wR7KOIrRcTVCczEXTdF2+5dorsvWsk0xQ+6gbdU/oJKDfOmFA VyJsT1IaK1bvudjbgiCECXBuNJL7TB4OrUJo4qcuBXoM5rQfxwrVb1LGN4c/WHaFx5sYdFMDkZE eZAMF X-Gm-Gg: AZFdTZeG7EGflDaTM54Vv4O7yaqL9Cw2q32RV+QzDL6QahZik96qvYJ7y4v4bM25DlD TOZrjaM5fC1G8b6k2mbDPOkMOl3MhyxyWP5kJCbLGr9rE+DDCkYrsQtG49rA8njxZKofcAf5IIm 5u7Prq8Y0HItx8aaaoiz3AMhlhO6GKKr3p3yFu02C1CaEGGH97Qmc8g8lCMTFZj6WOdUaFz5qfM p45/IvXUIK5PzN4R8bhqgn5FEwO6BCa3yL7wF65Kep1ZdgsFsl8P000Fhbo8ZapxsC7mp8X1ie/ RFCc2H7k5D4ENNy5gCoSMSsxhh2M6vyqZ9pb5+mg0DFNnsz3AYdUQ+L9XJYyYCqg94ZeYgMASjm 4FhfyefAJJWjZ0aRZgii4dIp0hyJQRQ0AUGWNZZeRGx7di3Yvak5NSSR4McMJD1tD9HRIKUll1f 9Ut4vQ7ovSCP1mu+0sRdJupEBHqJhfMNHXoptHfvTYCjJ9ihDYm429gpfWHQ9nKhGUiZxKJajuZ C2a03BojShkwg7EFJs+cjF+mwuLVoskfk3nrVaJJlmb0Drm76Ndj56pNc3e/GP+82c9F2eOmpb8 K1S8tDYg/NyVJr9whaUB80zqxN2nu24alG3cje47fzNQgqMPa50aJZeZsfHv4uOu0HFtwxLFGBO B6JvNu6ceF1kMvJNsiroUG7zzBW55f8GvCitjow== X-Received: by 2002:a05:6a00:a20e:b0:8a0:7dc4:95c0 with SMTP id d2e1a72fcca58-8de2d032187mr3093212b3a.15.1796411977229; Fri, 04 Dec 2026 11:19:37 -0800 (PST) Return-Path: Received: from localhost ([2606:c800:6024:2000:5eeb:9d70:b81f:8b6]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8df5518198fsm287418b3a.28.2026.12.04.11.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 11:19:36 -0800 (PST) From: Tim Orling To: openembedded-core@lists.openembedded.org Cc: Tim Orling Subject: [PATCH 6/7] python3-cryptography{,-vectors}: upgrade 50.0.2 -> 51.0.1 Date: Fri, 4 Dec 2026 11:17:23 -0800 Message-ID: <20261204191922.676542-6-tim.orling@konsulko.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261204191922.676542-1-tim.orling@konsulko.com> References: <20261204191922.676542-1-tim.orling@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 19:19:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252097 Drop two backports that are in 51.0.0 and regenerate the crates. 51.0.0 raises the MSRV to 1.85.0, deprecates DSA and fixes a deadlock in concurrent Argon2 key derivation; 51.0.1 fixes two Fernet regressions. Changelog: https://github.com/pyca/cryptography/blob/51.0.1/CHANGELOG.rst Tested with core-image-ptest-python3-cryptography on qemux86-64, and built for native and nativesdk. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Tim Orling --- Test results: ptest on qemux86-64 (KVM): 4579 passed, 207 skipped, 0 failed. .../python/python3-cryptography-common.inc | 2 +- .../python/python3-cryptography-crates.inc | 82 ++++++++++--------- .../python/python3-cryptography-vectors.bb | 3 +- ...ject.toml-relax-uv_build-upper-bound.patch | 29 ------- .../python/python3-cryptography.bb | 3 +- ...-on-AEAD-finalize-failure-regardless.patch | 53 ------------ 6 files changed, 45 insertions(+), 127 deletions(-) delete mode 100644 meta/recipes-devtools/python/python3-cryptography-vectors/0001-pyproject.toml-relax-uv_build-upper-bound.patch delete mode 100644 meta/recipes-devtools/python/python3-cryptography/0001-Raise-InvalidTag-on-AEAD-finalize-failure-regardless.patch diff --git a/meta/recipes-devtools/python/python3-cryptography-common.inc b/meta/recipes-devtools/python/python3-cryptography-common.inc index 37bac765d0..a62ce15bbf 100644 --- a/meta/recipes-devtools/python/python3-cryptography-common.inc +++ b/meta/recipes-devtools/python/python3-cryptography-common.inc @@ -3,4 +3,4 @@ # # Additionally AUH will detect that they share this .inc file and # perform a lockstep upgrade for both. -PV = "50.0.2" +PV = "51.0.1" diff --git a/meta/recipes-devtools/python/python3-cryptography-crates.inc b/meta/recipes-devtools/python/python3-cryptography-crates.inc index 91e910e711..eb0952d849 100644 --- a/meta/recipes-devtools/python/python3-cryptography-crates.inc +++ b/meta/recipes-devtools/python/python3-cryptography-crates.inc @@ -2,69 +2,71 @@ # from Cargo.lock SRC_URI += " \ - crate://crates.io/asn1/0.24.1 \ - crate://crates.io/asn1_derive/0.24.1 \ - crate://crates.io/base64/0.23.0 \ - crate://crates.io/bitflags/2.13.1 \ - crate://crates.io/cc/1.4.0 \ - crate://crates.io/cfg-if/1.0.4 \ - crate://crates.io/find-msvc-tools/0.1.9 \ + crate://crates.io/asn1/0.25.1 \ + crate://crates.io/asn1_derive/0.25.1 \ + crate://crates.io/base64/0.23.1 \ + crate://crates.io/bitflags/2.13.2 \ + crate://crates.io/cc/1.12.0 \ + crate://crates.io/cfg-if/1.0.5 \ + crate://crates.io/find-msvc-tools/0.1.16 \ crate://crates.io/foreign-types/0.3.2 \ crate://crates.io/foreign-types-shared/0.1.1 \ crate://crates.io/heck/0.5.0 \ - crate://crates.io/itoa/1.0.18 \ - crate://crates.io/libc/0.2.189 \ + crate://crates.io/itoa/1.0.19 \ + crate://crates.io/libc/0.2.191 \ crate://crates.io/once_cell/1.21.4 \ - crate://crates.io/openssl/0.10.81 \ + crate://crates.io/openssl/0.10.82 \ crate://crates.io/openssl-macros/0.1.1 \ - crate://crates.io/openssl-sys/0.9.117 \ + crate://crates.io/openssl-sys/0.9.118 \ crate://crates.io/pem/4.0.0 \ - crate://crates.io/pkg-config/0.3.33 \ - crate://crates.io/portable-atomic/1.14.0 \ + crate://crates.io/pkg-config/0.3.34 \ + crate://crates.io/portable-atomic/1.15.0 \ crate://crates.io/proc-macro2/1.0.107 \ - crate://crates.io/pyo3/0.29.2 \ - crate://crates.io/pyo3-build-config/0.29.2 \ - crate://crates.io/pyo3-ffi/0.29.2 \ - crate://crates.io/pyo3-macros/0.29.2 \ - crate://crates.io/pyo3-macros-backend/0.29.2 \ + crate://crates.io/pyo3/0.30.1 \ + crate://crates.io/pyo3-build-config/0.30.1 \ + crate://crates.io/pyo3-ffi/0.30.1 \ + crate://crates.io/pyo3-macros/0.30.1 \ + crate://crates.io/pyo3-macros-backend/0.30.1 \ crate://crates.io/quote/1.0.47 \ crate://crates.io/self_cell/1.3.0 \ crate://crates.io/shlex/2.0.1 \ crate://crates.io/syn/2.0.119 \ - crate://crates.io/target-lexicon/0.13.5 \ - crate://crates.io/unicode-ident/1.0.24 \ + crate://crates.io/syn/3.0.10 \ + crate://crates.io/target-lexicon/0.13.6 \ + crate://crates.io/unicode-ident/1.0.27 \ crate://crates.io/vcpkg/0.2.15 \ " -SRC_URI[asn1-0.24.1.sha256sum] = "c9795210620c0cb3f9a7ce4f882808c38e1ef7b347c90591dceae0886e031fb1" -SRC_URI[asn1_derive-0.24.1.sha256sum] = "909e307f1cc32bb8bccbd98f446e6d1bf03fa30f7b53a4337da7181ad30fa11a" -SRC_URI[base64-0.23.0.sha256sum] = "b25655df2c3cdd83c5e5b293b88acd880332b2ddadd7c30ac43144fdc0033da9" -SRC_URI[bitflags-2.13.1.sha256sum] = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da" -SRC_URI[cc-1.4.0.sha256sum] = "5add81bb678e6cb321aff7fa0dc7689ad82b112dbc032cea19f91d6b8e3582b9" -SRC_URI[cfg-if-1.0.4.sha256sum] = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" -SRC_URI[find-msvc-tools-0.1.9.sha256sum] = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" +SRC_URI[asn1-0.25.1.sha256sum] = "c8c471698abfbafd1307fa726d63fad5a01c4c44328fb35ae5e7f9d1d0b0713a" +SRC_URI[asn1_derive-0.25.1.sha256sum] = "80e0938b96e7b7a78214c6367ade497f507b157cd45df7ed384a5afc795272c1" +SRC_URI[base64-0.23.1.sha256sum] = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" +SRC_URI[bitflags-2.13.2.sha256sum] = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" +SRC_URI[cc-1.12.0.sha256sum] = "95e45cf2980b2d467be49a9ed942c9179b701063a7ca3d037de7ee9bd67f8d66" +SRC_URI[cfg-if-1.0.5.sha256sum] = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" +SRC_URI[find-msvc-tools-0.1.16.sha256sum] = "3e44f110d1777dc6559a51e7d45083945ded4f1bf3305494350f693b6d20b9c8" SRC_URI[foreign-types-0.3.2.sha256sum] = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" SRC_URI[foreign-types-shared-0.1.1.sha256sum] = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" SRC_URI[heck-0.5.0.sha256sum] = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" -SRC_URI[itoa-1.0.18.sha256sum] = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" -SRC_URI[libc-0.2.189.sha256sum] = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" +SRC_URI[itoa-1.0.19.sha256sum] = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" +SRC_URI[libc-0.2.191.sha256sum] = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" SRC_URI[once_cell-1.21.4.sha256sum] = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" -SRC_URI[openssl-0.10.81.sha256sum] = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45" +SRC_URI[openssl-0.10.82.sha256sum] = "4de8111e94a56adca7ebfe6c365b6d42f99deb69b74b6becacd4204e2f193aa2" SRC_URI[openssl-macros-0.1.1.sha256sum] = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" -SRC_URI[openssl-sys-0.9.117.sha256sum] = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695" +SRC_URI[openssl-sys-0.9.118.sha256sum] = "19c413d6ec9ebaf5e1c829d355cb3e9f783778d700f135be0921d52fce3c60ae" SRC_URI[pem-4.0.0.sha256sum] = "d354a98a3d1251555de99e8fdd8afda05573c31b82f59063a7b0a29b5527f120" -SRC_URI[pkg-config-0.3.33.sha256sum] = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" -SRC_URI[portable-atomic-1.14.0.sha256sum] = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3" +SRC_URI[pkg-config-0.3.34.sha256sum] = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" +SRC_URI[portable-atomic-1.15.0.sha256sum] = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" SRC_URI[proc-macro2-1.0.107.sha256sum] = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" -SRC_URI[pyo3-0.29.2.sha256sum] = "4688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b" -SRC_URI[pyo3-build-config-0.29.2.sha256sum] = "f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9" -SRC_URI[pyo3-ffi-0.29.2.sha256sum] = "e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327" -SRC_URI[pyo3-macros-0.29.2.sha256sum] = "73225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c" -SRC_URI[pyo3-macros-backend-0.29.2.sha256sum] = "571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952" +SRC_URI[pyo3-0.30.1.sha256sum] = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4" +SRC_URI[pyo3-build-config-0.30.1.sha256sum] = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700" +SRC_URI[pyo3-ffi-0.30.1.sha256sum] = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4" +SRC_URI[pyo3-macros-0.30.1.sha256sum] = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60" +SRC_URI[pyo3-macros-backend-0.30.1.sha256sum] = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b" SRC_URI[quote-1.0.47.sha256sum] = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" SRC_URI[self_cell-1.3.0.sha256sum] = "2ab42ca02749e120097e328d91d415325bdf43b1c72c4c8badf37375fe40a813" SRC_URI[shlex-2.0.1.sha256sum] = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" SRC_URI[syn-2.0.119.sha256sum] = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" -SRC_URI[target-lexicon-0.13.5.sha256sum] = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca" -SRC_URI[unicode-ident-1.0.24.sha256sum] = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" +SRC_URI[syn-3.0.10.sha256sum] = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" +SRC_URI[target-lexicon-0.13.6.sha256sum] = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da" +SRC_URI[unicode-ident-1.0.27.sha256sum] = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" SRC_URI[vcpkg-0.2.15.sha256sum] = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" diff --git a/meta/recipes-devtools/python/python3-cryptography-vectors.bb b/meta/recipes-devtools/python/python3-cryptography-vectors.bb index e19b9611cc..d59fd5fe5d 100644 --- a/meta/recipes-devtools/python/python3-cryptography-vectors.bb +++ b/meta/recipes-devtools/python/python3-cryptography-vectors.bb @@ -9,8 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4 \ # NOTE: Make sure to keep this recipe at the same version as python3-cryptography # Upgrade both recipes at the same time require python3-cryptography-common.inc -SRC_URI += "file://0001-pyproject.toml-relax-uv_build-upper-bound.patch" -SRC_URI[sha256sum] = "d99111fe5dd5a8d40650e300aad34b6e6910ca198c674b8008450ca69f8f05c4" +SRC_URI[sha256sum] = "e9ef6468fc2a3c4c930f670e82a1d352383784e20f61d3315d831d901cfacc25" inherit pypi python_uv_build diff --git a/meta/recipes-devtools/python/python3-cryptography-vectors/0001-pyproject.toml-relax-uv_build-upper-bound.patch b/meta/recipes-devtools/python/python3-cryptography-vectors/0001-pyproject.toml-relax-uv_build-upper-bound.patch deleted file mode 100644 index 008be12e30..0000000000 --- a/meta/recipes-devtools/python/python3-cryptography-vectors/0001-pyproject.toml-relax-uv_build-upper-bound.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 9315d44ea059d68629c5adb33df7a84fa8ea03c2 Mon Sep 17 00:00:00 2001 -From: Jaipaul Cheernam -Date: Tue, 13 Oct 2026 17:53:26 +0000 -Subject: [PATCH] Allow uv-build 0.13.0 - -Upstream-Status: Backport [https://github.com/pyca/cryptography/commit/1e0ced8ad61d3c84215fd749abb183e87b58caea] - -Note: The upstream change also updates .github/requirements/build-requirements.{in,txt}, -which only exist in the git repository. The PyPI sdist that this recipe builds -from contains just pyproject.toml, so only that file is patched here. - -Signed-off-by: Jaipaul Cheernam ---- - pyproject.toml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 0b10dcc..ee03759 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -1,5 +1,5 @@ - [build-system] --requires = ["uv_build>=0.7.19,<0.13.0"] -+requires = ["uv_build>=0.7.19,<0.14.0"] - build-backend = "uv_build" - - [project] --- -2.40.0 diff --git a/meta/recipes-devtools/python/python3-cryptography.bb b/meta/recipes-devtools/python/python3-cryptography.bb index 311b7313f0..d14128d691 100644 --- a/meta/recipes-devtools/python/python3-cryptography.bb +++ b/meta/recipes-devtools/python/python3-cryptography.bb @@ -11,12 +11,11 @@ LDSHARED += "-pthread" # NOTE: Make sure to keep this recipe at the same version as python3-cryptography-vectors # Upgrade both recipes at the same time require python3-cryptography-common.inc -SRC_URI[sha256sum] = "7b46165bb56eb4704e2eaaf86f3c940d19154535d9b0ca7d6d590b04060e00d5" +SRC_URI[sha256sum] = "1f763c5bcb70bd3edcf94ba085ea576de3e1f8ca77703b7c06838a67762d7483" SRC_URI += "file://0001-pyproject.toml-remove-benchmark-disable-option.patch \ file://check-memfree.py \ file://run-ptest \ - file://0001-Raise-InvalidTag-on-AEAD-finalize-failure-regardless.patch \ " require ${BPN}-crates.inc diff --git a/meta/recipes-devtools/python/python3-cryptography/0001-Raise-InvalidTag-on-AEAD-finalize-failure-regardless.patch b/meta/recipes-devtools/python/python3-cryptography/0001-Raise-InvalidTag-on-AEAD-finalize-failure-regardless.patch deleted file mode 100644 index 4c3be321ee..0000000000 --- a/meta/recipes-devtools/python/python3-cryptography/0001-Raise-InvalidTag-on-AEAD-finalize-failure-regardless.patch +++ /dev/null @@ -1,53 +0,0 @@ -From 098b3b1816c3541847b507b2b1e0ae2e3aa85102 Mon Sep 17 00:00:00 2001 -From: Alex Gaynor -Date: Sat, 5 Sep 2026 17:11:53 -0400 -Subject: [PATCH] Raise InvalidTag on AEAD finalize failure regardless of error - queue (#15596) - -OpenSSL f7d2d2acef (openssl/openssl#32587) now pushes PROV_R_BAD_DECRYPT -onto the error queue when an AEAD tag check fails in EVP_DecryptFinal_ex. -Our finalize only mapped failures to InvalidTag when the error queue was -empty, so on OpenSSL master a bad GCM tag surfaced as a ValueError about -block length instead. - -For modes with an authentication tag, treat any finalize failure as -InvalidTag. Older OpenSSL, BoringSSL, AWS-LC, and LibreSSL still leave -the queue empty, so behavior there is unchanged. - -Claude-Session: https://claude.ai/code/session_01Eg4jjDRiLcBQrdEFsL3fCD - -Co-authored-by: Claude Fable 5.1 - -Upstream-Status: Backport [https://github.com/pyca/cryptography/commit/e83bbe58e373536636baaa7c33a64a6e8f04c953] -Signed-off-by: Jaipaul Cheernam ---- - src/rust/src/backend/ciphers.rs | 16 ++++++++++------ - 1 file changed, 10 insertions(+), 6 deletions(-) - -diff --git a/src/rust/src/backend/ciphers.rs b/src/rust/src/backend/ciphers.rs -index f850bef..073bee3 100644 ---- a/src/rust/src/backend/ciphers.rs -+++ b/src/rust/src/backend/ciphers.rs -@@ -233,12 +233,16 @@ impl CipherContext { - py: pyo3::Python<'p>, - ) -> CryptographyResult> { - let mut out_buf = vec![0; self.ctx.block_size()]; -- let n = self.ctx.cipher_final(&mut out_buf).or_else(|e| { -- if e.errors().is_empty() -- && self -- .py_mode -- .bind(py) -- .is_instance(&types::MODE_WITH_AUTHENTICATION_TAG.get(py)?)? -+ let n = self.ctx.cipher_final(&mut out_buf).or_else(|_| { -+ // For authenticated modes, the only way finalize can fail is a -+ // tag mismatch. Older OpenSSL versions (and BoringSSL, AWS-LC, -+ // and LibreSSL) leave the error queue empty in that case, while -+ // OpenSSL >= 4.1 pushes PROV_R_BAD_DECRYPT, so we can't key on -+ // the error queue. -+ if self -+ .py_mode -+ .bind(py) -+ .is_instance(&types::MODE_WITH_AUTHENTICATION_TAG.get(py)?)? - { - return Err(CryptographyError::from(exceptions::InvalidTag::new_err(()))); - }