• 2024-07-31optee CA和TA 例程 - 值传递
    CA如下实现一个简单的CA代码示例,它使用了不同的Params类型#include<err.h>#include<stdio.h>#include<string.h>#include<stdlib.h>/*OP-TEETEEclientAPI(builtbyoptee_client)*/#include<tee_client_api.h>/*TothetheUUID(foundtheth
  • 2024-07-31OPTEE TA的类型区分
    OP-TEETA的三种类型目录PTA(伪TA)EarlyTAUserTAPTA(伪TA)编译位置:BL32运行模式:内核态功能限制:不能调用GP(通用目的)接口兼容性:可以在Uboot和Linux上运行EarlyTA编译位置:BL32运行模式:用户态功能:可以调用GP(通用目的)接口兼容性:可以在Uboot和Linux上运
  • 2024-07-31optee环境基本组成
    本文介绍optee全部环境的各部分组成,及其相互之间的关系optee各部分组成TeelinuxdriverTee_SupplicantOptee_ClientOpteeOsCA&TATeelinuxdriver这是Linux内核中的一个驱动程序,负责与OP-TEE操作系统进行通信。它提供了用户空间与安全世界(即OP-TEEOS)之间的接
  • 2024-05-14TEE开发 checkpatch.sh 使用方法
    checkpatch.sh是对checkpatch.pl的封装,在opteeos官方脚本里面scripts/下可以找到有如下使用方法Usage:checkpatch.sh[--working]Checkworkingareacheckpatch.sh<commit>...Checkspecificcommit(s)checkp
  • 2024-04-22OPTEE - CA和TA的交互
    optee整体架构如下图(图片来源:https://zhuanlan.zhihu.com/p/553611279)从以下示例代码中(tab:example-hello_world)我们可以看到,在CA(clientapplication)端调用teeclientAPI的流程如下:TEEC_InitializeContext()TEEC_OpenSession()TEEC_InvokeCommand()TEEC_CloseSessi
  • 2023-02-16optee km4.0 VTS:PerInstance/EncryptionOperationsTest.TripleDesEcbRoundTripSuccess/0_default(未完待续)
    异常日志1:#./VtsHalKeymasterV4_0TargetTest--gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbRoundTripSuccess/0_defaultNote:GoogleTestfilter
  • 2023-02-14optee km4.0 VTS:PerInstance/SigningOperationsTest.NoUserConfirmation/0_default (存疑)
    异常日志:#./VtsHalKeymasterV4_0TargetTest--gtest_filter=PerInstance/SigningOperationsTest.NoUserConfirmation/0_defaultNote:GoogleTestfilter=PerInstance/
  • 2023-02-14optee km4.0 VTS: PerInstance/SigningOperationsTest.RsaUseRequiresCorrectAppIdAppData/0_default
    异常日志:#./VtsHalKeymasterV4_0TargetTest--gtest_filter=PerInstance/SigningOperationsTest.RsaUseRequiresCorrectAppIdAppData/0_defaultNote:GoogleTestfilter
  • 2023-02-14optee km4.0 VTS: PerInstance/SigningOperationsTest.RsaGetKeyCharacteristicsRequiresCorrectAppIdAppDa
    异常日志:#./VtsHalKeymasterV4_0TargetTest--gtest_filter=PerInstance/SigningOperationsTest.RsaGetKeyCharacteristicsRequiresCorrectAppIdAppData/0_defaultNote