随笔分类 - 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
阅读全文
摘要: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
阅读全文
摘要:流程: 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
阅读全文
摘要:keymaster_tag_t定义: typedef enum { KM_TAG_INVALID = KM_INVALID | 0, /* * Tags that must be semantically enforced by hardware and software implementatio
阅读全文
摘要:异常日志: 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
阅读全文
摘要:AttestationPerformanceTest 测试方式:adb shell am instrument -r -e class android.keystore.cts.AttestationPerformanceTest -w android.keystore.cts/androidx.t
阅读全文
摘要:最近使用这个函数来排除TA中内存泄露问题。 函数: #ifdef CFG_WITH_STATSstatic TEE_Result get_alloc_stat1() { struct malloc_stats stats; malloc_get_stats(&stats); strncpy(stat
阅读全文
摘要:VTS单模块测试: ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerI
阅读全文
摘要: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时,用一个字节来
阅读全文
摘要:异常日志1:GenerateKey时返回UNSUPPORTED_ALGORITHM # ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbRoundTripS
阅读全文
摘要:升级大致思路: 梳理出接口差异点 参考原生软实现,部分接口可以直接在CA侧实现,大部分需要TA中实现。软实现中用到了openssl的接口,部分在keymaster TA中会有对标实现,相关的Serialize和Deserialize也有部分现成的 死磕IKeymasterDevice.hal中针对接
阅读全文
摘要:异常日志: # ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.NoUserConfirmation/0_defaultNote: Google Test filter = PerIns
阅读全文
摘要:异常日志: # ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaUseRequiresCorrectAppIdAppData/0_defaultNote: Google Test
阅读全文
摘要:异常日志: # ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaGetKeyCharacteristicsRequiresCorrectAppIdAppData/0_default
阅读全文
摘要:./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.RsaAttestation/0_default 异常1: hardware/interfaces/keymaster/4.0/vts/functio
阅读全文
摘要:VTS测试fail: Note: Google Test filter = PerInstance/ClearOperationsTest.TooManyOperations/0_default[ ] Running 1 test from 1 test suite.[ ] Global test
阅读全文
摘要:写在前面: 一言难尽呐! VTS测试下来的结果,就是一眼看不到头的Fail。 只能逐个分析,挨个解决了。 Fail项: # ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest.Hm
阅读全文