随笔分类 -  android-keymaster

摘要:异常日志: 11-12 19:24:47.649 5387 5387 D AndroidRuntime: Shutting down VM 11-12 19:24:47.671 5387 5387 E AndroidRuntime: FATAL EXCEPTION: main 11-12 19:24 阅读全文
posted @ 2023-11-23 11:12 xiululu 阅读(62) 评论(0) 推荐(0) 编辑
摘要:CA侧打印cmd id字串: const char* get_cmd(uint32_t cmd) { switch(cmd) { case KM_GENERATE_KEY: return "KM_GENERATE_KEY"; case KM_BEGIN_OPERATION: return "KM_B 阅读全文
posted @ 2023-10-09 16:06 xiululu 阅读(96) 评论(0) 推荐(0) 编辑
摘要:流程: 0275 09-26 15:45:29.341 3393 3393 D FingerprintBoundKeysTest: 1. startTest --> createKey 0279 09-26 15:45:29.344 3393 3393 D FingerprintBoundKeysT 阅读全文
posted @ 2023-09-26 16:34 xiululu 阅读(43) 评论(0) 推荐(0) 编辑
摘要:keymaster_tag_t定义: typedef enum { KM_TAG_INVALID = KM_INVALID | 0, /* * Tags that must be semantically enforced by hardware and software implementatio 阅读全文
posted @ 2023-09-15 11:02 xiululu 阅读(79) 评论(0) 推荐(0) 编辑
摘要:异常日志: 26634 09-12 19:45:34.213 299 299 I OpteeKeymaster_ipc: TEEC_InvokeCommand cmd 4 failed with code 0xffffffe6 (User is not authenticated) origin 0 阅读全文
posted @ 2023-09-14 13:37 xiululu 阅读(53) 评论(0) 推荐(0) 编辑
摘要:AttestationPerformanceTest 测试方式:adb shell am instrument -r -e class android.keystore.cts.AttestationPerformanceTest -w android.keystore.cts/androidx.t 阅读全文
posted @ 2023-09-11 14:27 xiululu 阅读(290) 评论(0) 推荐(0) 编辑
摘要:最近使用这个函数来排除TA中内存泄露问题。 函数: #ifdef CFG_WITH_STATSstatic TEE_Result get_alloc_stat1() { struct malloc_stats stats; malloc_get_stats(&stats); strncpy(stat 阅读全文
posted @ 2023-03-21 22:43 xiululu 阅读(85) 评论(0) 推荐(0) 编辑
摘要:VTS单模块测试: ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerI 阅读全文
posted @ 2023-03-15 16:47 xiululu 阅读(179) 评论(0) 推荐(0) 编辑
摘要:X.690标准: https://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf TLV之TAG解读: tag-length-value表示中,tag的编码规则如下: TAG<=30 当TAG值小于或者等于30时,用一个字节来 阅读全文
posted @ 2023-03-14 16:55 xiululu 阅读(510) 评论(0) 推荐(0) 编辑
摘要:异常日志1:GenerateKey时返回UNSUPPORTED_ALGORITHM # ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbRoundTripS 阅读全文
posted @ 2023-02-16 14:20 xiululu 阅读(142) 评论(0) 推荐(0) 编辑
摘要:升级大致思路: 梳理出接口差异点 参考原生软实现,部分接口可以直接在CA侧实现,大部分需要TA中实现。软实现中用到了openssl的接口,部分在keymaster TA中会有对标实现,相关的Serialize和Deserialize也有部分现成的 死磕IKeymasterDevice.hal中针对接 阅读全文
posted @ 2023-02-16 10:33 xiululu 阅读(163) 评论(0) 推荐(0) 编辑
摘要:异常日志: # ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.NoUserConfirmation/0_defaultNote: Google Test filter = PerIns 阅读全文
posted @ 2023-02-14 16:51 xiululu 阅读(47) 评论(0) 推荐(0) 编辑
摘要:异常日志: # ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaUseRequiresCorrectAppIdAppData/0_defaultNote: Google Test 阅读全文
posted @ 2023-02-14 11:24 xiululu 阅读(50) 评论(0) 推荐(0) 编辑
摘要:异常日志: # ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaGetKeyCharacteristicsRequiresCorrectAppIdAppData/0_default 阅读全文
posted @ 2023-02-14 10:08 xiululu 阅读(84) 评论(0) 推荐(0) 编辑
摘要:./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.RsaAttestation/0_default 异常1: hardware/interfaces/keymaster/4.0/vts/functio 阅读全文
posted @ 2023-02-08 14:41 xiululu 阅读(108) 评论(0) 推荐(1) 编辑
摘要:VTS测试fail: Note: Google Test filter = PerInstance/ClearOperationsTest.TooManyOperations/0_default[ ] Running 1 test from 1 test suite.[ ] Global test 阅读全文
posted @ 2023-01-12 15:06 xiululu 阅读(76) 评论(0) 推荐(0) 编辑
摘要:写在前面: 一言难尽呐! VTS测试下来的结果,就是一眼看不到头的Fail。 只能逐个分析,挨个解决了。 Fail项: # ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest.Hm 阅读全文
posted @ 2023-01-12 11:25 xiululu 阅读(180) 评论(0) 推荐(0) 编辑