QAT_Engine
QAT_Engine copied to clipboard
openssl 3 undefined symbol: EVP_PKEY_base_id
env: OpenSSL 3.0.2 15 Mar 2022 QAT_Engine-master QAT.L.4.26.0-00008 qat 8970 ubuntu 22.04
I perform the following steps: 1、lspci | grep C62x
0a:00.0 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology (rev 04)
0c:00.0 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology (rev 04)
0e:00.0 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology (rev 04)
2、build QAT.L.4.26.0-00008 ./configure make make install
- qat_dev0 - type: c6xx, inst_id: 0, node_id: 0, bsf: 0000:0a:00.0, #accel: 5 #engines: 10 state: up
- qat_dev1 - type: c6xx, inst_id: 1, node_id: 0, bsf: 0000:0c:00.0, #accel: 5 #engines: 10 state: up
- qat_dev2 - type: c6xx, inst_id: 2, node_id: 0, bsf: 0000:0e:00.0, #accel: 5 #engines: 10 state: up
make sample-all
Latency computation Disabled
qaeOpenFd:163 Memory file handle is not initialized. Initializing it now
qaeMemInit started
icp_sal_userStartMultiProcess("SSL") started
*** QA version information ***
device ID = 1
software = 4.26.0
*** END QA version information ***
*** QA version information ***
device ID = 2
software = 4.26.0
*** END QA version information ***
Warning! Skipping DSA tests as they are not supported on Instance
runTests=123
Warning! Skipping DH tests as they are not supported on Instance
runTests=107
*** QA version information ***
device ID = 1
software = 4.26.0
*** END QA version information ***
*** QA version information ***
device ID = 2
software = 4.26.0
*** END QA version information ***
Inst 0, Affin: 0, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 1, Affin: 1, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 2, Affin: 2, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 3, Affin: 3, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 4, Affin: 4, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 5, Affin: 5, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 6, Affin: 0, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
Inst 7, Affin: 1, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
Inst 8, Affin: 2, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
Inst 9, Affin: 3, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
Inst 10, Affin: 4, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
Inst 11, Affin: 5, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
Inst 0, Affin: 0, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 1, Affin: 1, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 2, Affin: 2, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 3, Affin: 3, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 4, Affin: 4, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 5, Affin: 5, Dev: 1, Accel 1, EE 0, BDF 0C:00:00
Inst 6, Affin: 0, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
Inst 7, Affin: 1, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
Inst 8, Affin: 2, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
Inst 9, Affin: 3, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
Inst 10, Affin: 4, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
Inst 11, Affin: 5, Dev: 2, Accel 2, EE 0, BDF 0E:00:00
---------------------------------------
Cipher AES128-CBC
Direction Encrypt
API Traditional
Packet Size 64
Number of Threads 12
Total Submissions 1200000
Total Responses 1200000
Total Retries 40319
CPU Frequency(kHz) 2794850
Throughput(Mbps) 1510
---------------------------------------
3、build openssl ./config --prefix=/usr/local/ssl -Wl,-rpath,/usr/local/ssl/lib64 -g make make install
4、build qat engine ./autogen.sh ./configure --with-qat_hw_dir=/root/qat/driver --with-openssl_install_dir=/usr/local/ssl make make install
/usr/local/ssl/bin/openssl engine -t -c qatengine
(qatengine) Reference implementation of QAT crypto engine(qat_hw) v1.6.2
[RSA, AES-128-CBC-HMAC-SHA256, AES-256-CBC-HMAC-SHA256, id-aes128-CCM, id-aes192-CCM, id-aes256-CCM, TLS1-PRF, X25519, X448]
qaeOpenFd:163 Memory file handle is not initialized. Initializing it now
[ available ]
40A7F996D97F0000:error:1280006A:DSO support routines:dlfcn_bind_func:could not bind to the requested symbol name:crypto/dso/dso_dlfcn.c:188:symname(EVP_PKEY_base_id): /usr/local/ssl/lib64/engines-3/qatengine.so: undefined symbol: EVP_PKEY_base_id
40A7F996D97F0000:error:1280006A:DSO support routines:DSO_bind_func:could not bind to the requested symbol name:crypto/dso/dso_lib.c:176:
I don't know why there's an undefined symbol: EVP_PKEY_base_id error here.
#242 might help
@Yuanbo-2019 Feel free to reopen the ticket if the issue persists. I am closing this ticket for now.