Rate This Document
Findability
Accuracy
Completeness
Readability

Encryption and Decryption Key Generation

Case No.

2.1.2

Test Objective

Verify that the API for generating encryption and decryption keys in the secure OS is working properly.

Test Networking

See Test Networking.

Prerequisites

  1. The TrustZone kit has been burnt into the server and the TrustZone license has been activated.
  2. The REE patch has been loaded to the server. The CA and TA can be loaded and can communicate with each other properly.

Test Procedure

  1. Log in to the REE OS and load the TrustZone REE patch tzdriver. (See Expected Result 1.)

    insmod tzdriver

    /usr/bin/teecd &

  2. Write the CA and TA and make the following requirements on the TA code. (See Expected Result 2.)
    • Call the TEE_GenerateKey API to generate keys.
    • The key types are TEE_TYPE_AES, TEE_SM4, TEE_TYPE_RSA_KEYPAIR, and TEE_TYPE_SM2_DSA_KEYPAIR.

Expected Result

  1. The REE patch is loaded and no error information is displayed.
  2. The API is working properly and the keys are generated. No error information is displayed.

Test Result

  

Remarks

Ask the Huawei R&D to provide the TA and CA source code and binary files for the test.