Rate This Document
Findability
Accuracy
Completeness
Readability

Installing the KAE by Installing RPM Packages

For details, see Installing the KAE Software Using an RPM Package in the KAE Developer Guide (KAE Encryption & Decryption).

  1. Download the RPM package (version 1.3.11). CentOS 7.6 is used as an example.

    https://gitee.com/kunpengcompute/KAE/releases

    cd /home/
    wget https://gitee.com/kunpengcompute/KAE/releases/download/v1.2.10/kae_1.3.11_CentOS.7.6.4.14.0-115.el7a.0.1.zip --no-check-certificate
  2. Decompress the package.
    unzip kae_1.3.11_CentOS.7.6.4.14.0-115.el7a.0.1.zip
    ll -rt
  3. Go to the directory generated after decompression.
    cd 'kae_1.3.11_CentOS 7.6 4.14.0-115.el7a.0.1'
    ll -rt
  4. Install the RPM package of uacce.
    rpm -ivh uacce-1.3.11-1.centos7.6.aarch64.rpm

  5. Install the RPM package of hisi_hpre.
    rpm -ivh hisi_hpre-1.3.11-1.centos7.6.aarch64.rpm

  6. Install the RPM package of libwd.
    rpm -ivh libwd-1.3.11-1.centos7.6.aarch64.rpm

  7. Install the RPM package of libkae.
    rpm -ivh libkae-1.3.11-1.centos7.6.aarch64.rpm

    hisi_hpre depends on uacce, and libkae depends on libwd.

  8. View the kernel-mode library file.
    1
    ll /usr/local/lib/engines-1.1/
    

  9. Configure the environment variables.
    1. Open profile.
      vi /etc/profile
    2. Add the following content to the file:
      export OPENSSL_ENGINES=/usr/local/lib/engines-1.1 
    3. Make the environment variables take effect.
      source /etc/profile
    4. View the environment variables.
      env | grep OPENSSL_ENGINES

      Restore the environment variables.

      1. Open profile.
        vi /etc/profile
      2. Delete the following content:
        export OPENSSL_ENGINES=/usr/local/lib/engines-1.1
      3. Make the environment variables take effect.
        source /etc/profile
      4. Run the unset command.
        unset OPENSSL_ENGINES
      5. View the environment variables.
        env | grep OPENSSL_ENGINES
  10. Load the drivers.
    modprobe uacce
    modprobe hisi_hpre
  11. Check the drivers.
    lsmod | grep uacce
    lsmod | grep hisi_hpre

  12. Check KAE devices (virtual devices).
    ls /sys/class/uacce/
    Or
    ll /sys/class/uacce/