mirror of
https://github.com/openharmony/tee_tee_os_framework.git
synced 2026-07-01 07:22:28 -04:00
232e1b0973c05d43f4200b38df518c0b1a77a702
Signed-off-by: suwanghw <wangsu14@huawei.com>
Contribution for tee_tee_os_framework
tee_os_framework mainly contains the framework codes of tee, which is responsible for the management of the whole life cycle of TA, the processing of CA and TA interactive information and the management of drivers. In addition, it also provides core services such as encryption, decryption and secure storage. The specific module introduction is as followed.
1. The specific module introduction of tee_os_framework
| Name of module | Functions |
|---|---|
| gtask | TA lifetime control, create and destroy TA process, commication manager, session manager and agent manager of CA2TA, process error information for TA |
| teesmcmgr | dispatch smc command, including CA commands, system suspend and resume command, idle state management |
| tarunner | load,analysis and relocate the elf file of TA/drivers/services |
| drvmgr | management lifetime of drivers, including the create and destroy of drivers, interface permission control, driver process rights management, drivers access control, process incorrect state of drivers |
| permission service | permission management of SEC file |
| ssa | secure storage functions |
| huk service | hardware root key access control |
| teemiscdrv | base driver, get shared information from bootloader |
| cryptomgr | the framework code of encrypt/decrypt drivers |
| TEE base API | base interfaces of TA development, including encrypt/decrypt, secure storage, secure timer and GP interface of TA2TA |
| TEE driver API | interfaces for driver develepment, including interrupt, IO and DMA |
| sample | sample code for TEE load(teeloader) and sample code for ATF-TEE adapt code(tee_atf) |
| test | tee test suit |
二、tee_os_framework code directories
base/tee/tee_os_framework
├── framework
│ ├── gtask
│ ├── teesmcmgr
│ ├── drvmgr
│ └── tarunner
├── lib
│ ├── drvlib # libs for drvmgr and drivers
│ ├── syslib # libs for TEE internal services
│ └── teelib # libs for TA and services
├── drivers
│ ├── tee_misc_drv
│ ├── include
│ └── crypto_mgr
├── service
│ ├── permission_service
│ ├── huk_service
│ └── ssa
├── config
│ ├── release_config # release config macros
│ └── debug_config # debug config macros
├── build
├── test
└── sample
Description
tee_tee_os_framework 主要包含OpenTrustee的框架部分,负责TA整个生命周期的管理、CA与TA交互信息的处理以及驱动的管理。除此以外,还提供了加解密、安全存储等核心服务
Languages
C
85.6%
C++
9.5%
Makefile
3.8%
CMake
0.5%
Shell
0.5%
Other
0.1%