Rate This Document
Findability
Accuracy
Completeness
Readability

Hash Calculation in the Secure OS

Case No.

4.3.6

Test Objective

Test the hash calculation performance of the secure OS.

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 CA and TA code. (See Expected Result 2.)
    • Record the digest calculation duration from the time when the command is sent to the time when the calculation result is returned (hash values do not need to be returned to the REE) in calculating the digest of 1 KB, 2 KB, 4 KB, 16 KB, 256 KB, 512 KB and 1 MB data. The data is generated by the TA in advance and does not need to be included in the statistics.
    • The algorithms are SHA-256 and SM3-256.

Expected Result

  1. The REE patch is loaded and no error information is displayed.
  2. The performance data can be obtained.

Test Result

  

Remarks