From 48db1037e578b8ce9eb80fe0a644e022d96a353b Mon Sep 17 00:00:00 2001 From: shixuantong Date: Wed, 11 Jun 2025 14:25:56 +0800 Subject: [PATCH] add EVP_PKEY_keygen_init and EVP_PKEY_keygen (cherry picked from commit 274b958a617d317e3ca81c19bc283cf0795ff5df) --- Revert-Remove-now-unused-bindings-8778.patch | 20 +++++++++++++++----- python-cryptography.spec | 5 ++++- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Revert-Remove-now-unused-bindings-8778.patch b/Revert-Remove-now-unused-bindings-8778.patch index 38f6e24..85e3a04 100644 --- a/Revert-Remove-now-unused-bindings-8778.patch +++ b/Revert-Remove-now-unused-bindings-8778.patch @@ -5,11 +5,11 @@ Subject: [PATCH 5/5] Revert 'Remove now unused bindings (#8778)' https://github.com/pyca/cryptography/commit/c7cbfeccac42e434a5c67578054b9b5df50659bb --- - src/_cffi_src/openssl/evp.py | 9 +++++++++ - 1 file changed, 9 insertions(+) + src/_cffi_src/openssl/evp.py | 12 ++++++++++++ + 1 file changed, 12 insertions(+) diff --git a/src/_cffi_src/openssl/evp.py b/src/_cffi_src/openssl/evp.py -index e01b22f..5b0cd46 100644 +index e01b22f..7306e73 100644 --- a/src/_cffi_src/openssl/evp.py +++ b/src/_cffi_src/openssl/evp.py @@ -53,6 +53,10 @@ EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void); @@ -35,7 +35,17 @@ index e01b22f..5b0cd46 100644 void EVP_PKEY_CTX_free(EVP_PKEY_CTX *); int EVP_PKEY_sign_init(EVP_PKEY_CTX *); int EVP_PKEY_sign(EVP_PKEY_CTX *, unsigned char *, size_t *, -@@ -110,6 +117,8 @@ void EVP_MD_CTX_free(EVP_MD_CTX *); +@@ -103,6 +110,9 @@ int EVP_PKEY_set1_DSA(EVP_PKEY *, DSA *); + + int EVP_PKEY_cmp(const EVP_PKEY *, const EVP_PKEY *); + ++int EVP_PKEY_keygen_init(EVP_PKEY_CTX *); ++int EVP_PKEY_keygen(EVP_PKEY_CTX *, EVP_PKEY **); ++ + int EVP_PKEY_id(const EVP_PKEY *); + + EVP_MD_CTX *EVP_MD_CTX_new(void); +@@ -110,6 +120,8 @@ void EVP_MD_CTX_free(EVP_MD_CTX *); int EVP_DigestSign(EVP_MD_CTX *, unsigned char *, size_t *, const unsigned char *, size_t); @@ -45,5 +55,5 @@ index e01b22f..5b0cd46 100644 int EVP_PKEY_bits(const EVP_PKEY *); -- -2.43.0 +2.27.0 diff --git a/python-cryptography.spec b/python-cryptography.spec index 2285788..61e9a47 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,7 +1,7 @@ %global pypi_name cryptography Name: python-%{pypi_name} Version: 42.0.2 -Release: 6 +Release: 7 Summary: PyCA's cryptography library License: ASL 2.0 or BSD URL: https://cryptography.io/en/latest/ @@ -106,6 +106,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest --ignore vendo %doc README.rst docs %changelog +* Wed Jun 11 2025 shixuantong - 42.0.2-7 +- add EVP_PKEY_keygen_init and EVP_PKEY_keygen + * Tue Jun 10 2025 shixuantong - 42.0.2-6 - Revert bound openssl symbols to support sm2 for python -- Gitee