185 lines
8.1 KiB
RPMSpec
185 lines
8.1 KiB
RPMSpec
Name: uadk_engine
|
|
Summary: UADK Accelerator Engine
|
|
Version: 1.2.0
|
|
Release: 4
|
|
License: Apache-2.0
|
|
Source: %{name}-%{version}.tar.gz
|
|
ExclusiveOS: linux
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
Prefix: /usr/local/lib/engines-1.1
|
|
Conflicts: %{name} < %{version}-%{release}
|
|
Provides: %{name} = %{version}-%{release}
|
|
BuildRequires: libwd >= 2.3.21
|
|
BuildRequires: openssl-devel sed autoconf automake libtool
|
|
ExclusiveArch: aarch64
|
|
|
|
Patch0001: 0001-readme-export-PKG_CONFIG_PATH-on-openEuler.patch
|
|
Patch0002: 0002-uadk_engine-use-calloc-to-replace-malloc-memset.patch
|
|
Patch0003: 0003-v1-some-code-clean.patch
|
|
Patch0004: 0004-v1-fix-implicit-declaration-of-function-OPENSSL_call.patch
|
|
Patch0005: 0005-uadk-build-uadk_engine-only-if-openssl-1.1.patch
|
|
Patch0006: 0006-uadk-support-openssl-3.0.patch
|
|
Patch0007: 0007-README-update-openssl-3.0.patch
|
|
Patch0008: 0008-cipher-fix-double-free-error.patch
|
|
Patch0009: 0009-cipher-fix-set-key-error.patch
|
|
Patch0010: 0010-cipher-fix-async-hardware-computing-error.patch
|
|
Patch0011: 0011-uadk_prov_digest-merge-threshold-table.patch
|
|
Patch0012: 0012-uadk-add-uadk_prov_cipher.patch
|
|
Patch0013: 0013-sanity_test-add-prov_cipher-for-openssl-3.0.patch
|
|
Patch0014: 0014-uadk_engine-fixup-signed-unsigned-mix-with-relationa.patch
|
|
Patch0015: 0015-uadk_engine-fixup-variable-naming-conflicts.patch
|
|
Patch0016: 0016-digest-fixup-free-source-method.patch
|
|
Patch0017: 0017-ecc-fixup-free-source-method-inconsistent.patch
|
|
Patch0018: 0018-cipher-fixup-error-handling-in-ctx-init.patch
|
|
Patch0019: 0019-uadk_engine-modify-setting-async-poll-state-process.patch
|
|
Patch0020: 0020-dh-fixup-release-source-of-private-key.patch
|
|
Patch0021: 0021-ecc-Add-pkey-method-null-pointer-judgment.patch
|
|
Patch0022: 0022-rsa-release-source-when-new-kg-out-failed.patch
|
|
Patch0023: 0023-rsa-bugfix-repeated-source-release.patch
|
|
Patch0024: 0024-sm2-fixup-unreleased-source-in-data-conversion.patch
|
|
Patch0025: 0025-ecc-add-openssl-method-null-pointer-judgement.patch
|
|
Patch0026: 0026-uadk_engine-cleanup-call-form-of-callback-func.patch
|
|
Patch0027: 0027-uadk_engine-cleanup-empty-body-warning-in-v1.patch
|
|
Patch0028: 0028-sanity_test.sh-check-version-for-openssl-version-3.0.patch
|
|
Patch0029: 0029-README-fix-openEuler-build-libdir.patch
|
|
Patch0030: 0030-uadk_prov_digest-provider-default-may-not-exist.patch
|
|
Patch0031: 0031-uadk_provider-iv_len-in-SM4_ECB-mode-must-be-0.patch
|
|
Patch0032: 0032-uadk_provider-load-default-provider-into-Global-libr.patch
|
|
Patch0033: 0033-uadk_provider-handle-the-async_poll_task_free-in-pro.patch
|
|
Patch0034: 0034-uadk_cipher-iv_len-in-SM4_ECB-mode-must-be-0.patch
|
|
Patch0035: 0035-uadk_prov_cipher-add-handling-of-param-padding.patch
|
|
Patch0036: 0036-uadk_prov_cipher-fix-padding.patch
|
|
Patch0037: 0037-uadk_prov_cipher-add-stream-mode.patch
|
|
Patch0038: 0038-uadk_prov_cipher-xts-mode-does-not-use-default-provi.patch
|
|
Patch0039: 0039-uadk_prov_cipher-handle-no-padding-case.patch
|
|
Patch0040: 0040-sanity_test.sh-change-provider-name-to-its-full-path.patch
|
|
Patch0041: 0041-sanity_test-remove-default-provider.patch
|
|
Patch0042: 0042-uadk_prov_cipher-add-static-descriptor-to-uadk_prov_.patch
|
|
Patch0043: 0043-tentative-ctx-handle-handle.patch
|
|
Patch0044: 0044-uadk-add-uadk_prov_rsa-for-openssl-3.0.patch
|
|
Patch0045: 0045-uadk_provider-add-DOPENSSL_SUPPRESS_DEPRECATED.patch
|
|
Patch0046: 0046-uadk_prov_cipher-fix-build-warning.patch
|
|
Patch0047: 0047-uadk_prov_init-change-name-more-informative.patch
|
|
Patch0048: 0048-digest-alloc-session-and-data-when-copy-evp-context.patch
|
|
Patch0049: 0049-uadk_prov_init-remove-engine_uadk_id.patch
|
|
Patch0050: 0050-uadk_prov-reuse-OSSL_OP_STORE-from-default-provider.patch
|
|
Patch0051: 0051-uadk-add-uadk_prov_dh.patch
|
|
Patch0052: 0052-uadk-add-DH-sanity-test.patch
|
|
Patch0053: 0053-uadk-add-uadk_provider.cnf.patch
|
|
Patch0054: 0054-uadk-add-evp_test.sh.patch
|
|
Patch0055: 0055-uadk_engine-remove-redundant-param-of-async.patch
|
|
Patch0056: 0056-uadk_engine-support-aead-aes-gcm-algorithm.patch
|
|
Patch0057: 0057-cipher-fix-uadk_e_destroy_cipher-memory-leak.patch
|
|
Patch0058: 0058-aead-fix-for-engine-lock-is-not-initialized.patch
|
|
Patch0059: 0059-uadk-fix-cipher-switchover-to-software-calculation-f.patch
|
|
Patch0060: 0060-aead-fix-tag-length-check.patch
|
|
Patch0061: 0061-aead-fix-for-aes-gcm-update-process.patch
|
|
Patch0062: 0062-cipher-add-sm4-ecb-mode.patch
|
|
Patch0063: 0063-uadk-fix-EVP_CTRL_GET_IVLEN-not-find.patch
|
|
Patch0064: 0064-configure-use-LT_INIT-to-replace-obsolete-AC_PROG_LI.patch
|
|
Patch0065: 0065-uadk_prov-Set-enable_sw_offload-from-uadk_provider.c.patch
|
|
Patch0066: 0066-ecc-optimize-sm2-sign-check-function.patch
|
|
Patch0067: 0067-digest-fix-the-address-of-async-op.patch
|
|
Patch0068: 0068-uadk_engine-add-device-initialization-status.patch
|
|
Patch0069: 0069-uadk_engine-fixup-resource-management-issues.patch
|
|
Patch0070: 0070-sm2-fixup-switching-soft-sm2-decrypt-problem.patch
|
|
Patch0071: 0071-uadk_engine-cipher-digest-fixes-for-priv-address-che.patch
|
|
Patch0072: 0072-uadk_engine-ec-add-BN_new-memory-check.patch
|
|
Patch0073: 0073-uadk_engine-rsa-fix-mem-leak-for-from_buf.patch
|
|
Patch0074: 0074-ecc-add-check-of-siglen.patch
|
|
Patch0075: 0075-v1-pkey-add-check-of-qlist.patch
|
|
Patch0076: 0076-uadk_engine-uadk_rsa-fix-to-free-from_buffer.patch
|
|
Patch0077: 0077-uadk_engine-uask_async-fix-thread_attr-res-leak.patch
|
|
Patch0078: 0078-uadk_engine-async-fix-add-async-send-timeout.patch
|
|
Patch0079: 0079-cipher-uadk_e_bind_ciphers-function-is-optimized.patch
|
|
Patch0080: 0080-cipher-UADK_CIPHER_DESCR-is-optimized.patch
|
|
Patch0081: 0081-v1-pkey-fix-uninitialized-variable.patch
|
|
Patch0082: 0082-uadk_engine-v1-fix-g_sec_ciphers_info-error.patch
|
|
|
|
%description
|
|
This package contains the UADK Accelerator Engine
|
|
|
|
%prep
|
|
%autosetup -n %{name} -p1
|
|
|
|
%build
|
|
autoreconf -i
|
|
chmod +x configure
|
|
./configure --enable-kae
|
|
make
|
|
|
|
%install
|
|
mkdir -p ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1
|
|
install -b -m755 src/.libs/uadk_engine.so.%{version} ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1
|
|
|
|
%clean
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
%files
|
|
%defattr(755,root,root)
|
|
/usr/local/lib/engines-1.1/uadk_engine.so.%{version}
|
|
|
|
%pre
|
|
if [ "$1" = "2" ] ; then #2: update
|
|
rm -rf $RPM_INSTALL_PREFIX/uadk_engine.so > /dev/null 2>&1 || true
|
|
rm -rf $RPM_INSTALL_PREFIX/uadk_engine.so.0 > /dev/null 2>&1 || true
|
|
fi
|
|
|
|
%post
|
|
if [[ "$1" = "1" || "$1" = "2" ]] ; then #1: install 2: update
|
|
ln -sf $RPM_INSTALL_PREFIX/uadk_engine.so.%{version} $RPM_INSTALL_PREFIX/uadk_engine.so
|
|
ln -sf $RPM_INSTALL_PREFIX/uadk_engine.so.%{version} $RPM_INSTALL_PREFIX/uadk_engine.so.0
|
|
fi
|
|
/sbin/ldconfig
|
|
|
|
%preun
|
|
if [ "$1" = "0" ] ; then #0: uninstall
|
|
rm -rf $RPM_INSTALL_PREFIX/uadk_engine.so > /dev/null 2>&1 || true
|
|
rm -rf $RPM_INSTALL_PREFIX/uadk_engine.so.0 > /dev/null 2>&1 || true
|
|
rm -f /var/log/uadk_engine.log > /dev/null 2>&1 || true
|
|
rm -f /var/log/uadk_engine.log.old > /dev/null 2>&1 || true
|
|
fi
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
|
|
%changelog
|
|
* Wed Nov 29 2023 JiangShui Yang <yangjiangshui@h-partners.com> 1.2.0-4
|
|
- Backport uadk engine build patch
|
|
|
|
* Tue Nov 21 2023 JiangShui Yang <yangjiangshui@h-partners.com> 1.2.0-3
|
|
- Backport uadk engine build patch
|
|
|
|
* Tue Oct 31 2023 JiangShui Yang <yangjiangshui@h-partners.com> 1.2.0-2
|
|
- Backport uadk engine build patch
|
|
|
|
* Tue Aug 22 2023 JiangShui Yang <yangjiangshui@h-partners.com> 1.2.0-1
|
|
- Backport uadk engine patch form v1.0.1 to 1.2.0
|
|
|
|
* Fri Aug 19 2023 JiangShui Yang <yangjiangshui@h-partners.com> 1.0.0-9
|
|
- Backport uadk engine patch for v1.0.1
|
|
|
|
* Fri Aug 19 2023 JiangShui Yang <yangjiangshui@h-partners.com> 1.0.0-8
|
|
- Eable debuginfo for fix strip
|
|
|
|
* Tue Jul 26 2022 Yang Shen <shenyang39@huawei.com> 1.0.0-7
|
|
- Backport uadk engine patch from v1.0.0 to v1.0.1
|
|
|
|
* Mon Mar 21 2022 linwenkai <linwenkai6@hisilicon.com> 1.0.0-6
|
|
- Backport uadk engine patch for v1.0.0
|
|
|
|
* Thu Mar 3 2022 linwenkai <linwenkai6@hisilicon.com> 1.0.0-5
|
|
- Backport uadk engine patch for v1.0.0
|
|
|
|
* Mon Feb 21 2022 linwenkai <linwenkai6@hisilicon.com> 1.0.0-4
|
|
- Backport uadk engine patch for v1.0.0
|
|
|
|
* Wed Jan 12 2022 linwenkai <linwenkai6@hisilicon.com> 1.0.0-3
|
|
- Backport uadk engine patch
|
|
|
|
* Fri Dec 10 2021 linwenkai <linwenkai6@hisilicon.com> 1.0.0-2
|
|
- Delete digest duplicate code
|
|
|
|
* Fri Dec 10 2021 linwenkai <linwenkai6@hisilicon.com> 1.0.0-1
|
|
- First Spec Version Include uadk_engine Code
|