OP-TEE: libteec
2024-12-15
| 2025-1-12
本文字數 42閱讀時長 1 分鐘
type
Post
status
Published
date
Dec 15, 2024
slug
summary
OP-TEE libteec library 的 codes trace 筆記。
tags
OP-TEE
category
Security
icon
password
⚠️
The code is based on: https://gitlab.com/riseproject/riscv-optee/optee_os/-/tree/dev-optee-mpxy Commit ID: 75df9ba41a404aec897399ead0ff0aebcbff48ca
  • TEEC_InitializeContext()
    • teec_open_dev()
      • Open /dev/teeX device.
  • TEEC_OpenSession()
    • Call ioctl() with TEE_IOC_OPEN_SESSION command.
      • This will eventually trap to Linux Kernel’s tee_ioctl().
  • TEEC_InvokeCommand()
    • Call ioctl() with TEE_IOC_INVOKE command. The command ID for TA is passed through arg->func.
  • TEEC_CloseSession()
    • Call ioctl() with TEE_IOC_CLOSE_SESSION command.
  • TEEC_FinalizeContext()
    • Close /dev/teeX device.
  • OP-TEE
  • OP-TEE: MiscOP-TEE: ABI
    Loading...
    目錄