Rate This Document
Findability
Accuracy
Completeness
Readability

KAE Fails to Be Used by OpenSSL 1.1.1c Installed on EulerOS 2.8

Symptom

KAE fails to be used by OpenSSL 1.1.1c installed by default on EulerOS 2.8, and a message is displayed indicating that the symbol cannot be found.

Key Process and Cause Analysis

The SM algorithm (controlled by the OPENSSL_NO_SM4 compilation option) is not enabled for OpenSSL 1.1.1c installed by default on EulerOS 2.8, and the generated crypto library does not have the corresponding function symbol.

Conclusion and Solution

Download OpenSSL and compile it again. You do not need to add the OPENSSL_NO_SM4 macro in the configuration before compilation. Install OpenSSL by referring to "Installing OpenSSL" in Kunpeng Accelerator Engine Developer Guide (KAE Encryption and Decryption).