intel / cryptography-primitives

Intel® Cryptography Primitives Library is a secure, fast and lightweight library of building blocks for cryptography, highly-optimized for various Intel® CPUs
Apache License 2.0
327 stars 86 forks source link

Some ipp-crypto aes test cases(version: ippcp-2021.12.1-rls) failed with ipp-crypto latest release(version: Jun 7, 2024) #80

Open xiaonan-INTC opened 3 months ago

xiaonan-INTC commented 3 months ago

HW: EMR/ICX/SPR SW: Ubuntu 22.04/24.04

-FAIL. "ippsAES_XTSEncrypt" in "ta_AES_XTS_ENC"
-FAIL. "ippsAES_XTSDecrypt" in "ta_AES_XTS_DEC"
-FAIL. "ippsAESEncryptXTS_Direct" in "ta_AES_XTS_ENC" -FAIL. "ippsAESDecryptXTS_Direct" in "ta_AES_XTS_DEC" -FAIL. "ippsAES_XTSEncrypt" in "tb_AES_XTS_ENC" -FAIL. "ippsAES_XTSDecrypt" in "tb_AES_XTS_DEC"

Do you meet the same failures?

paveldyakov commented 3 months ago

Hi @xiaonan-INTC, Could you please tell which compiler do you use?

xiaonan-INTC commented 3 months ago

gcc version is 11.4.0/13.2.0 on Ubuntu 22.04/24.04

paveldyakov commented 3 months ago

Hi @xiaonan-INTC, we haven't any correctness issues with 11.4 gcc compiler. Do you have the failures only with the latest release? Please let me know how can I help you

xiaonan-INTC commented 3 months ago

Hi @xiaonan-INTC, we haven't any correctness issues with 11.4 gcc compiler. Do you have the failures only with the latest release? Please let me know how can I help you

Attach test log on Ubuntu 22.04, which is same on Ubuntu 24.04. Since we import ipp-crypto as libippcp.a in SGX SDK, so it is a little hard to debug those failures directly, could you help analyze that log to find possible causes? test_log_linux_no-mitigation_ubuntu2204.log

paveldyakov commented 6 days ago

Hi @xiaonan-INTC, could you please let me know if the issue is still relevant for you?