diff --git a/backport-provide-openssl-apis-related-to-SM-for-python.patch b/backport-provide-openssl-apis-related-to-SM-for-python.patch index 68f469a5e2265c599a56e0e4e1116bcecae6cdca..a02e948caec9bb5cea6c32c7fe2b50b11b1b05a8 100644 --- a/backport-provide-openssl-apis-related-to-SM-for-python.patch +++ b/backport-provide-openssl-apis-related-to-SM-for-python.patch @@ -1,26 +1,25 @@ -From 52325495900f1bd9e1f228f24c81c0746520dc85 Mon Sep 17 00:00:00 2001 -From: hanxinke -Date: Tue, 3 Aug 2021 10:45:22 +0800 +From 54b5e3998c42a74064d9af6667dd7ddd74ad3c90 Mon Sep 17 00:00:00 2001 +From: wang--ge +Date: Thu, 16 Jan 2025 11:04:49 +0800 Subject: [PATCH] provide openssl apis related to SM for python -Signed-off-by: hanxinke --- - src/_cffi_src/openssl/evp.py | 7 +++++++ - 1 file changed, 7 insertions(+) + src/_cffi_src/openssl/evp.py | 6 ++++++ + 1 file changed, 6 insertions(+) diff --git a/src/_cffi_src/openssl/evp.py b/src/_cffi_src/openssl/evp.py -index 54f5388..c304684 100644 +index f25c9bb..bb00269 100644 --- a/src/_cffi_src/openssl/evp.py +++ b/src/_cffi_src/openssl/evp.py -@@ -32,6 +32,7 @@ static const int EVP_CTRL_AEAD_SET_TAG; +@@ -22,6 +22,7 @@ static const int EVP_PKEY_EC; + static const int EVP_MAX_MD_SIZE; - static const int Cryptography_HAS_SCRYPT; static const int Cryptography_HAS_EVP_PKEY_DHX; +static const int EVP_PKEY_SM2; - static const long Cryptography_HAS_300_FIPS; - static const long Cryptography_HAS_300_EVP_CIPHER; """ -@@ -69,6 +70,9 @@ int EVP_VerifyUpdate(EVP_MD_CTX *, const void *, size_t); + + FUNCTIONS = """ +@@ -44,6 +45,9 @@ int EVP_VerifyUpdate(EVP_MD_CTX *, const void *, size_t); int EVP_VerifyFinal(EVP_MD_CTX *, const unsigned char *, unsigned int, EVP_PKEY *); @@ -30,16 +29,15 @@ index 54f5388..c304684 100644 int EVP_PKEY_set1_RSA(EVP_PKEY *, RSA *); int EVP_PKEY_set1_DSA(EVP_PKEY *, DSA *); -@@ -84,6 +88,9 @@ int EVP_PKEY_assign_RSA(EVP_PKEY *, RSA *); - - int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *, int, int, void *); +@@ -56,6 +60,8 @@ void EVP_MD_CTX_free(EVP_MD_CTX *); + int EVP_PKEY_bits(const EVP_PKEY *); + int EVP_PKEY_assign_RSA(EVP_PKEY *, RSA *); +void EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx); +const EVP_MD *EVP_sm3(void); -+ - int EVP_default_properties_enable_fips(OSSL_LIB_CTX *, int); """ + CUSTOMIZATIONS = """ -- -2.27.0 +2.46.0 diff --git a/cargo-vendor-cache.tar.gz b/cargo-vendor-cache.tar.gz index 5346f6f27b0ac244ab413c066b4e03ac07e5c757..37135ebdf58c0d74daffca04e7a0819217648219 100644 Binary files a/cargo-vendor-cache.tar.gz and b/cargo-vendor-cache.tar.gz differ diff --git a/cryptography-42.0.7.tar.gz b/cryptography-42.0.7.tar.gz deleted file mode 100644 index 2e6b5c3489350dd6fff9f1798c58d5334bf91110..0000000000000000000000000000000000000000 Binary files a/cryptography-42.0.7.tar.gz and /dev/null differ diff --git a/cryptography-44.0.0.tar.gz b/cryptography-44.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3844a7fa1702154cb488e242174d399c6557e4fd Binary files /dev/null and b/cryptography-44.0.0.tar.gz differ diff --git a/python-cryptography.spec b/python-cryptography.spec index 05778dcca112bf6f7713b54ece11371512762fc2..f2cf48caff711fd8bf80be9d0e700569f45f1c98 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,7 +1,7 @@ %global pypi_name cryptography Name: python-%{pypi_name} -Version: 42.0.7 -Release: 2 +Version: 44.0.0 +Release: 1 Summary: PyCA's cryptography library License: (Apache-2.0 OR BSD-3-Clause) AND PSF-2.0 URL: https://cryptography.io/en/latest/ @@ -30,6 +30,7 @@ BuildRequires: python%{python3_pkgversion}-pytz BuildRequires: python%{python3_pkgversion}-cffi >= 1.12 BuildRequires: python%{python3_pkgversion}-setuptools-rust >= 1.7.0 BuildRequires: python%{python3_pkgversion}-wheel +BuildRequires: python%{python3_pkgversion}-maturin BuildRequires: python3-pip BuildRequires: python3-pytest-subtests BuildRequires: python3-pytest-benchmark @@ -86,12 +87,16 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest --ignore vendo %license LICENSE LICENSE.APACHE LICENSE.BSD %{python3_sitearch}/%{pypi_name} %{python3_sitearch}/%{pypi_name}-%{version}.dist-info +%exclude %{python3_sitearch}/rust/* %files help %defattr(-,root,root) %doc README.rst docs %changelog +* Thu Jan 16 2025 Ge Wang - 44.0.0-1 +- update to version 44.0.0 + * Fri Jul 26 2024 shixuantong - 42.0.7-2 - enable check