Files
tee_tee_dev_kit/sdk
suwanghw 0e9a85f1d4 modify TA configs.xml
Signed-off-by: suwanghw <wangsu14@huawei.com>
2023-07-15 18:32:05 +08:00
..
2023-05-23 14:06:22 +08:00
2022-03-18 14:18:38 +08:00
2023-07-15 18:32:05 +08:00
2022-03-18 14:18:38 +08:00
2023-05-24 10:50:25 +08:00
2023-05-24 10:50:25 +08:00
2022-03-18 14:18:38 +08:00

Introduction to sdk capabilities

Introduction

The SDK capabilities include: TA compilation dependent scripts and header files, TA's ability to issue certificates and sign perm_config signatures, and TA symbol checker, sec file signatures.

Content

The warehouse directory structure is as follows:

├── build
│   ├── cmake                             # cmake compile framework capabilities
│   ├── config_tee_private_sample.ini     # sec signed and perm_config signed python ini configuration file
│   ├── keytools                          # ta certificate issuance, and release type perm_config signature and non-interoperable sec file signature capabilities
│   ├── mk                                # make compile framework capabilities
│   ├── pack-Config                       # Signature packaging perm_config capability
│   ├── pack-TA                           # sec signature capability shell script
│   ├── signtools                         # sec signature capability python script and check TA undefined symbols.
│   └── tools                             # ld file (32-bit and 64-bit) linked by sec file, sec file binary check shell script 
├── CHANGELOG                             # Changelog of sdk version.
├── include
│   ├── CA                                # CA compilation dependent header files
│   └── TA                                # TA compile dependent header files
├── README.md                             # English description file of sdk package
├── README_zh.md                          # Chinese description file of sdk package
├── src
│   └── TA                                # TA compilation depends on ta_magic.c. When the 32-bit TA includes this definition, you can control the TA to use the tarunner loader to load, otherwise the 32-bit TA uses the taloader loader; 64-bit TA is not involved, and the 64-bit TA uses the tarunner loader.
├── test
│   ├── CA
│   │   ├── aes_demo                      # CA sample corresponding to TA-aes_demo
│   │   ├── helloworld                    # CA sample corresponding to TA-helloworld
│   │   ├── mac_demo                      # CA sample corresponding to TA-mac_demo
│   │   ├── rsa_demo                      # CA sample corresponding to TA-rsa_demo
│   │   └── secstorage_demo               # CA sample corresponding to TA-secstorage_demo
│   └── TA
│       ├── aes_demo                      # TA uses AES-CBC and AES-GCM algorithms to encrypt and decrypt demo
│       ├── helloworld                    # Simple CA2TA communication demo
│       ├── mac_demo                      # TA uses AES-CBC-MAC and AES-CMAC algorithms for message digest calculation demo
│       ├── rsa_demo                      # TA uses RSA algorithm for encryption and decryption and signature verification demo
│       └── secstorage_demo               # TA stores file demo with secure storage capability
├── thirdparty
│   └── open_source
│       ├── libboundscheck                # TA compilation depends on the security function library header file archive path
│       └── musl                          # TA compile dependent libc header files archive path
└── VERSION                               # SDK package software version number

Software Installation

Note that this kit can only be used on the linux server and cannot be used on the windows side. And depends on the following software:

  1. Install python3 software;
  2. Install the pycryptodomex library of python3
  3. Export the musl and bounds_checking_function header files, and follow the md instructions under thirdparty\open_source\bounds_checking_function and thirdparty\open_source\musl.

Relevant dependency warehouse

third_party/bounds_checking_function

third_party/musl