4/239 TEE Internal Core API Specification – Public Release v1.1
Copyright
2011-2014 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.2 TEE_Param .................................................................................................................................. 36
4.1.3 TEE_TASessionHandle ............................................................................................................... 36
4.1.4 TEE_PropSetHandle .................................................................................................................... 36
4.2 Constants ............................................................................................................................................ 37
4.2.1 Parameter Types .......................................................................................................................... 37
4.2.2 Login Types .................................................................................................................................. 37
4.2.3 Origin Codes ................................................................................................................................ 37
4.2.4 Property Set Pseudo-Handles...................................................................................................... 38
4.2.5 Memory Access Rights ................................................................................................................ 38
4.3 TA Interface ......................................................................................................................................... 39
4.3.1 TA_CreateEntryPoint ................................................................................................................... 43
4.3.2 TA_DestroyEntryPoint .................................................................................................................. 43
4.3.3 TA_OpenSessionEntryPoint ........................................................................................................ 44
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 .................................................................................................... 60
4.4.9 TEE_StartPropertyEnumerator .................................................................................................... 61
4.4.10 TEE_ResetPropertyEnumerator .................................................................................................. 61
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 ................................................................................................................. 82
4.11.4 TEE_Malloc .................................................................................................................................. 83
4.11.5 TEE_Realloc ................................................................................................................................ 85
4.11.6 TEE_Free ..................................................................................................................................... 86
4.11.7 TEE_MemMove............................................................................................................................ 86
4.11.8 TEE_MemCompare ..................................................................................................................... 87