4/242 TEE Internal Core API Specification – Public Release v1.1.1
Copyright 2011-2016 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.
4.1 Data Types .......................................................................................................................................... 38
4.1.1 TEE_Identity ................................................................................................................................. 38
4.1.2 TEE_Param .................................................................................................................................. 38
4.1.3 TEE_TASessionHandle ............................................................................................................... 38
4.1.4 TEE_PropSetHandle .................................................................................................................... 38
4.2 Constants ............................................................................................................................................ 39
4.2.1 Parameter Types .......................................................................................................................... 39
4.2.2 Login Types .................................................................................................................................. 39
4.2.3 Origin Codes ................................................................................................................................ 39
4.2.4 Property Set Pseudo-Handles...................................................................................................... 40
4.2.5 Memory Access Rights ................................................................................................................ 40
4.3 TA Interface ......................................................................................................................................... 41
4.3.1 TA_CreateEntryPoint ................................................................................................................... 44
4.3.2 TA_DestroyEntryPoint .................................................................................................................. 45
4.3.3 TA_OpenSessionEntryPoint ........................................................................................................ 45
4.3.4 TA_CloseSessionEntryPoint ........................................................................................................ 46
4.3.5 TA_InvokeCommandEntryPoint ................................................................................................... 47
4.3.6 Operation Parameters in the TA Interface ................................................................................... 48
4.4 Property Access Functions ................................................................................................................. 52
4.4.1 TEE_GetPropertyAsString ........................................................................................................... 54
4.4.2 TEE_GetPropertyAsBool ............................................................................................................. 55
4.4.3 TEE_GetPropertyAsU32 .............................................................................................................. 56
4.4.4 TEE_GetPropertyAsBinaryBlock.................................................................................................. 57
4.4.5 TEE_GetPropertyAsUUID ............................................................................................................ 58
4.4.6 TEE_GetPropertyAsIdentity ......................................................................................................... 59
4.4.7 TEE_AllocatePropertyEnumerator ............................................................................................... 60
4.4.8 TEE_FreePropertyEnumerator .................................................................................................... 61
4.4.9 TEE_StartPropertyEnumerator .................................................................................................... 61
4.4.10 TEE_ResetPropertyEnumerator .................................................................................................. 62
4.4.11 TEE_GetPropertyName ............................................................................................................... 62
4.4.12 TEE_GetNextProperty ................................................................................................................. 63
4.5 Trusted Application Configuration Properties ..................................................................................... 64
4.6 Client Properties .................................................................................................................................. 66
4.7 Implementation Properties .................................................................................................................. 68
4.8 Panics .................................................................................................................................................. 71
4.8.1 TEE_Panic ................................................................................................................................... 71
4.9 Internal Client API ............................................................................................................................... 72
4.9.1 TEE_OpenTASession .................................................................................................................. 72
4.9.2 TEE_CloseTASession .................................................................................................................. 73
4.9.3 TEE_InvokeTACommand ............................................................................................................ 74
4.9.4 Operation Parameters in the Internal Client API .......................................................................... 76
4.10 Cancellation Functions ........................................................................................................................ 77
4.10.1 TEE_GetCancellationFlag ............................................................................................................ 77
4.10.2 TEE_UnmaskCancellation ........................................................................................................... 78
4.10.3 TEE_MaskCancellation ................................................................................................................ 78
4.11 Memory Management Functions......................................................................................................... 79
4.11.1 TEE_CheckMemoryAccessRights ............................................................................................... 79
4.11.2 TEE_SetInstanceData .................................................................................................................. 82
4.11.3 TEE_GetInstanceData ................................................................................................................. 83
4.11.4 TEE_Malloc .................................................................................................................................. 84
4.11.5 TEE_Realloc ................................................................................................................................ 85
4.11.6 TEE_Free ..................................................................................................................................... 86