-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add testapp tests and spec file for QAT_SW
- Testapp tests and script that validates qat_engine Functionally. - qategnine-sw.spec file that builds qatengine for QAT_SW with crypto_mb and ipsec_mb dependancies. - Update README and version to v0.6.8 Signed-off-by: Yogaraj Alamenda <yogarajx.alamenda@intel.com>
- Loading branch information
1 parent
3db1d7b
commit 639d94d
Showing
25 changed files
with
9,362 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
%global githubname QAT_Engine | ||
%global enginesdir %(pkg-config --variable=enginesdir libcrypto) | ||
|
||
Name: qatengine-sw | ||
Version: 0.6.8 | ||
Release: 1%{?dist} | ||
Summary: Intel QuickAssist Technology (QAT) OpenSSL Engine | ||
# Most of the source code is BSD, with the following exceptions: | ||
# - e_qat.txt, e_qat_err.c, and e_qat_err.h are OpenSSL | ||
# - qat/config/* are (BSD or GPLv2), but are not used during compilation | ||
# - qat_contig_mem/* are GPLv2, but are not used during compilation | ||
License: BSD and OpenSSL | ||
URL: https://github.com/intel/%{githubname} | ||
Source0: https://github.com/intel/%{githubname}/archive/v%{version}/%{name}-%{version}.tar.gz | ||
|
||
BuildRequires: gcc make pkg-config | ||
BuildRequires: autoconf automake libtool | ||
BuildRequires: openssl-devel >= 1.1.1 | ||
BuildRequires: intel-ipsec-mb-devel >= 0.55.0 | ||
BuildRequires: intel-ipp-crypto-mb-devel >= 1.0.1 | ||
# https://bugzilla.redhat.com/show_bug.cgi?id=1909065 | ||
ExcludeArch: %{arm} aarch64 %{power64} s390x i686 | ||
|
||
%description | ||
This package provides the Intel QuickAssist Technology OpenSSL Engine | ||
(an OpenSSL Plug-In Engine) which provides cryptographic acceleration | ||
for optimized software using Intel QuickAssist Technology | ||
enabled Intel platforms. | ||
|
||
%prep | ||
%autosetup -n %{githubname}-%{version} | ||
|
||
%build | ||
autoreconf -ivf | ||
|
||
%configure --enable-qat_sw | ||
|
||
%make_build | ||
|
||
%install | ||
%make_install | ||
|
||
%files | ||
%license LICENSE* | ||
%doc README.md docs* | ||
%{enginesdir}/qatengine.so | ||
%exclude %{enginesdir}/qatengine.la | ||
|
||
%changelog | ||
* Mon Aug 23 2021 Bernard Iremonger <bernard.iremonger@intel.com> 0.6.8-1 | ||
- Initial version of rpm package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
################################################################ | ||
# BSD LICENSE | ||
# | ||
# Copyright(c) 2021 Intel Corporation. All rights reserved. | ||
# All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# | ||
# * Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# * Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in | ||
# the documentation and/or other materials provided with the | ||
# distribution. | ||
# * Neither the name of Intel Corporation nor the names of its | ||
# contributors may be used to endorse or promote products derived | ||
# from this software without specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
################################################################ | ||
|
||
|
||
EXTRA_PROGRAMS = testapp | ||
|
||
QAT_TEST_SRC = test/main.c \ | ||
test/tests.c \ | ||
test/tests_ecdh.c \ | ||
test/tests_ecdsa.c \ | ||
test/tests_rsa.c \ | ||
test/tests_aes128_gcm.c \ | ||
test/tests_aes256_gcm.c | ||
|
||
if QAT_HW | ||
QAT_HW_TEST_SRC = test/tests_aes_cbc_hmac_sha.c \ | ||
test/tests_dsa.c \ | ||
test/tests_dh.c \ | ||
test/tests_prf.c | ||
endif | ||
|
||
if !QAT_OPENSSL_110 | ||
if QAT_SW | ||
OPENSSL_111_TEST_SRC = test/tests_ecx.c | ||
else | ||
OPENSSL_111_TEST_SRC = test/tests_hkdf.c \ | ||
test/tests_ecx.c | ||
endif | ||
endif | ||
|
||
testapp_SOURCES = ${QAT_TEST_SRC} \ | ||
${QAT_HW_TEST_SRC} \ | ||
${OPENSSL_111_TEST_SRC} | ||
|
||
testapp_CFLAGS = $(includes_qat_hw) $(includes_openssl) \ | ||
$(cflags_openssl_3) $(cflags_qat_hw) \ | ||
$(cflags_qat_sw) $(cflags_qat_sw_ipsec) \ | ||
$(enable_qat_debug) $(enable_qat_warnings) | ||
|
||
testapp_LDADD = -ldl -lrt -lpthread $(OPENSSL_LIB) | ||
|
||
test: testapp |
Oops, something went wrong.