實作GlobalPlatform API ◦ 1999創立定義smart card標準的一個組織 ◦ 定義一些行動裝置安全的標準 ◦ 定義TEE並訂出API ▪ TEE Client API Specification v1.0 July 2010 ▪ TEE Internal API Specification v1.0 Dec 2011 • Internal Core API v1.1 June 2014 • 最早2007由ST開發,現在是linaro 接管,使用github平台來管理所有程式碼
Session: Connection from CA to TA. Command: Unit of Communication from CA to TA. Shared Memory: Shared buffers allocated by Client API or by CA and registered.
TA to increment %d\n", op.params[0].value.a); res = TEEC_InvokeCommand(&sess,TA_HELLO_WORLD_CMD_INC_VALUE, &op,&err_origin); if (res != TEEC_SUCCESS) errx(1, "TEEC_InvokeCommand failed with code 0x%x origin 0x%x",res, err_origin);