TEE Client API Specification 2/58
Copyright 2010 GlobalPlatform Inc. All Rights Reserved.
The technology provided or described herein is subject to updates, revisions, and extensions by GlobalPlatform. Use of this
information is governed by the GlobalPlatform license agreement and any use inconsistent with that agreement is strictly
prohibited.
Table of Contents
1. INTRODUCTION .................................................................................................................................................... 4
1.1. AUDIENCE ........................................................................................................................................................... 4
1.2. REFERENCES ........................................................................................................................................................ 4
1.2.1. Normative References ................................................................................................................................. 5
1.2.1. Informative References ............................................................................................................................... 5
1.3. TERMINOLOGY AND DEFINITIONS ........................................................................................................................ 5
1.4. ABBREVIATIONS AND NOTATIONS ....................................................................................................................... 7
1.5. CONVENTIONS ..................................................................................................................................................... 7
2. OVERVIEW .............................................................................................................................................................. 8
2.1. STANDARDIZATION SCOPE .................................................................................................................................. 8
2.2. THE TEE CLIENT API ARCHITECTURE ................................................................................................................ 8
3. PRINCIPLES AND CONCEPTS .......................................................................................................................... 10
3.1. DESIGN PRINCIPLES ........................................................................................................................................... 10
3.2. FUNDAMENTAL CONCEPTS ................................................................................................................................ 11
3.2.1. TEE Contexts ............................................................................................................................................ 11
3.2.2. Sessions ..................................................................................................................................................... 11
3.2.3. Commands ................................................................................................................................................ 11
3.2.4. Shared Memory ......................................................................................................................................... 13
3.2.5. Memory References ................................................................................................................................... 14
3.3. USAGE CONCEPTS ............................................................................................................................................. 16
3.3.1. Operation Instantiation ............................................................................................................................. 16
3.3.2. Multi-threading ......................................................................................................................................... 17
3.3.3. Resource Cleanup ..................................................................................................................................... 17
3.4. SECURITY .......................................................................................................................................................... 18
3.4.1. Security of the TEE and Trusted Applications .......................................................................................... 18
3.4.2. Security of the Rich Operating System ...................................................................................................... 18
4. SPECIFICATION ................................................................................................................................................... 19
4.1. IMPLEMENTATION-DEFINED BEHAVIOR AND PROGRAMMER ERRORS ............................................................... 19
4.2. HEADER FILE ..................................................................................................................................................... 19
4.3. DATA TYPES ...................................................................................................................................................... 19
4.3.1. Basic Types ............................................................................................................................................... 19
4.3.2. TEEC_Result ............................................................................................................................................. 20
4.3.3. TEEC_UUID ............................................................................................................................................. 20
4.3.4. TEEC_Context .......................................................................................................................................... 20
4.3.5. TEEC_Session ........................................................................................................................................... 20
4.3.6. TEEC_SharedMemory .............................................................................................................................. 20
4.3.7. TEEC_TempMemoryReference ................................................................................................................. 21
4.3.8. TEEC_RegisteredMemoryReference ........................................................................................................ 21
4.3.9. TEEC_Value ............................................................................................................................................. 22
4.3.10. TEEC_Parameter ...................................................................................................................................... 22
4.3.11. TEEC_Operation ...................................................................................................................................... 23
4.4. CONSTANTS ....................................................................................................................................................... 24
4.4.1. Configuration Settings .............................................................................................................................. 24
4.4.2. Return Codes............................................................................................................................................. 24
4.4.3. Return Code Origins ................................................................................................................................. 25
4.4.4. Shared Memory Control ........................................................................................................................... 25
评论0
最新资源