• Lv0
    粉丝0

积分0 / 贡献0

提问2答案被采纳0文章0

作者动态

小型系统兼容性测试ActsHuksLiteFunctionTest.HksAesTest001测试没法通过

scyff 显示全部楼层 发表于 2024-12-9 17:51:14

./ActsHuksLiteFunctionTest.bin --gtest_filter=HksAesTest001 --gtest_output=est.bin --gtest_filter=HksAesTest001 --gtest_output= <xml:/storage/test_root/seksAesTest001 --gtest_output=xml:/storage/test_root/se <curity/reports/ActsHuksLiut=xml:/storage/test_root/security/reports/ActsHuksLi <teFunctionTest/ Running main() from ../../../third_party/googletest/googletest/src/gtest_main.cc Note: Google Test filter = *HksAesTest001 [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from HksAesTest [ RUN ] HksAesTest.HksAesTest001 01-06 16:58:29.245 3022 3022 I 02F00/HUKS: HksInitialize[79]: enter initialize

01-06 16:58:29.245 3022 3022 I 01800/Samgr: Initialize Client Registry! 01-06 16:58:29.246 1281 1219 D 01800/Samgr: Judge Auth<huks_service, huks_feature> ret:0 01-06 16:58:29.246 3022 3022 I 01518/IPCRPC: ipc skeleton wait for proxy init 01-06 16:58:29.246 3022 3022 E 01518/IPCRPC: first add death callback for handle = 1. [INFO] TestAes256ByAgree: enter [INFO] GenerateBaseKey: Test_Aes_gen_by_derive BASEKEY!

01-06 16:58:29.246 3022 3022 I 01800/Samgr: Create remote sa proxy<huks_service, huks_feature>! 01-06 16:58:29.246 3022 3022 I 02F00/HUKS: HksInitialize[81]: leave initialize, result = 0

01-06 16:58:29.246 3022 3022 I 02F00/HUKS: HksGenerateKey[105]: enter generate [pid=1][Init][INFO][init_service_socket.c:195]Watcher socket fd 7 for service ueventd key

01-06 16:58:29.246 2994 2992 I 02F00/HUKS: RecordKeyOperation[941]: delete key or certchain, storage path: /storage/data/service/binder: release 2992:2994 transaction 132 in, still active el1/public/huks_service/maindata/+0+0+0+0/key, key alias: test_aes_key_by_derive_base_name_e****19_1

01-06 16:58:29.254 2994 2992 I 0[pid=1][Init][INFO][init_common_service.c:689]Reap service huks_server, pid 2992. 2F00/HUKS: GetAgreeBaseKey[647]: not an aes key, no need check main key and derive factor

01-06 16:58:29.265 2994 2992 I 02F00/HUKS: binder: send failed reply for transaction 132 to 3022:3022 RecordKeyOperation[934]: generate key or certchain, storage path: /storage/data/service/el1/public/huks_service/maindata/+0+0+0+0/key, key alias: test_aes_key_by_derive_base_name_e****19_1

[INFO] GenerateBaseKey: Test_Aes_gen_by_derive BASEKEY! 01-06 16:58:29.269 3022 3022 I 02F00/HUKS: HksGenerateKey[122]: leave generate persistent key, result = 0

01-06 16:58:29.270 3022 3022 I 02F00/HUKS: HksGenerateKey[105]: enter ge[pid=1][Init][INFO][init_common_service.c:568]Service huks_server(pid 3025) started nerate key

01-06 16:58:29.270 2994 2992 I 02F00/HUKS: RecordKeyOperation[941]: delete key or certchain, storage path: /storage/data/shilog ringbuffer full, drop 1 line(s) log ervice/el1/public/huks_service/maindata/+0+0+0+0/key, key alias: test_aes_key_by_derive_base_name_e****19_2

01-06 16:58:29.277 2994 2hilog ringbuffer full, drop 1 line(s) log 992 I 02F00/HUKS: GetAgreeBaseKey[647]: not an aes key, no need check main key and derive factor

01-06 16:58:29.279 2994 2992 I 02F00/HUKS: RecordKeyhilog ringbuffer full, drop 31 line(s) log Operation[934]: generate key or certchain, storage path: /storage/data/service/el1/public/huks_service/maindata/+0+0+0+0/key, key alias:hilog ringbuffer full, drop 3 line(s) log test_aes_key_by_derive_base_name_e****19_2

01-06 16:58:29.282 3022 3022 I 02F00/HUKS: HksGenerateKey[122]: leave generate persistenthilog ringbuffer full, drop 2 line(s) log key, result = 0

01-06 16:58:29.282 3022 3022 I 02F00/HUKS: HksExportPublicKey[177]: enter export public key

01-06 16:58:29.282 29hilog ringbuffer full, drop 2 line(s) log 94 2992 I 02F00/HUKS: RecordKeyOperation[938]: use key, storage path: /storage/data/service/el1/public/huks_service/maindata/+0+0+0+0/key, key alias: test_aes_key_by_derive_base_name_e****19_1

01-06 16:58:29.283 3022 3022 I 02F00/HUKS: HksExportPublicKey[183]: leave export public key, result = 0

01-06 16:58:29.283 3022 3022 I 02F00/HUKS: HksExportPublicKey[177]: enter export public key

01-06 16:58:29.283 2994 2992 I 02F00/HUKS: RecordKeyOperation[938]: use key, storage path: /storage/data/service/el1/public/huks_service/maindata/+0+0+0+0/key, key alias: test_aes_key_by_derive_base_name_e****19_2

01-06 16:58:29.284 3022 3022 I 02F00/HUKS: HksExportPublicKey[183]: leave export public key, result = 0 [INFO] ImportPubKey: Test_Import pubKey!

01-06 16:58:29.284 3022 3022 I 02F00/HUKS: HksImportKey[136]: enter import key

01-06 16:58:29.284 2994 2992 I 02F00/HUKS: RecordKeyOperation[941]: delete key or certchain, storage path: /storage/data/service/el1/public/huks_service/maindata/+0+0+0+0/key, key alias: test_aes_key_by_derive_base_nameed25519****bkey

01-06 16:58:29.293 2994 2992 I 02F00/HUKS: RecordKeyOperation[934]: generate key or certchain, storage path: /storage/data/service/el1/public/huks_service/maindata/+0+0+0+0/key, key alias: test_aes_key_by_derive_base_nameed25519****bkey

[INFO] ImportPubKey: Test_Import pubKey! 01-06 16:58:29.296 3022 3022 I 02F00/HUKS: HksImportKey[141]: leave import key, result = 0

01-06 16:58:29.296 3022 3022 I 02F00/HUKS: HksImportKey[136]: enter import key

01-06 16:58:29.296 2994 2992 I 02F00/HUKS: RecordKeyOperation[941]: delete key or certchain, storage path: /storage/data/service/el1/public/huks_service/maindata/+0+0+0+0/key, key alias: test_aes_key_by_derive_base_nameed25519****bkey

01-06 16:58:29.304 2994 2992 I 02F00/HUKS: RecordKeyOperation[934]: generate key or certchain, storage path: /storage/data/service/el1/public/huks_service/maindata/+0+0+0+0/key, key alias: test_aes_key_by_derive_base_nameed25519****bkey

[INFO] GenerateAesAgreeKey: Test_Aes_gen_by_agree key! 01-06 16:58:29.306 3022 3022 I 02F00/HUKS: HksImportKey[141]: leave import key, result = 0

01hilog ringbuffer full, drop 4 line(s) log -06 16:58:29.306 3022 3022 I 02F00/HUKS: HksGenerateKey[105]: enter generate key

01-06 16:58:29.307 2994 2992 I 02F00/HUKS: RecordKeyOperation[941]: delete key or certchain, storage path: /storage/data/service/el1/public/huks_service/maindata/+0+0+0+0/key, key alias: test_aes_key_by_agree_name_k****ias1 [ASSERT]GenerateAesAgreeKey:fail

[INFO] GenerateAesAgreeKey: End Test_Aes_gen_by_agree key!

[INFO] GenerateAesAgreeKey: Test_Aes_gen_by_agree key!

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 30, id = 0x1070000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 31, id = 0x1080000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 32, id = 0x1090000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 33, id = 0x11b0000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 34, id = 0x1160000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 35, id = 0x10a0000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 36, id = 0x10b0000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 37, id = 0x10c0000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 38, id = 0x11a0000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 39, id = 0x1140000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 40, id = 0x1190000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RegisterAbility[35]: register ability i = 41, id = 0x1130000

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: GenerateAuthTokenKey[624]: generate At key success!

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: HksCoreInitAuthTokenKey[658]: generate At key success!

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RecordKeyOperation[938]: use key, storage path: /storage/data/service/el1/public/huks_service/maindata/hksclient/info, key alias: minfo1****data

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RecordKeyOperation[938]: use key, storage path: /storage/data/service/el1/public/huks_service/maindata/hksclient/info, key alias: minfo2****data

01-06 16:58:29.473 3025 3025 I 02F00/HUKS: RecordKeyOperation[938]: use key, storage path: /storage/data/service/el1/public/huks_service/maindata/hksclient/info, key alias: rinfo1****data

01-06 16:58:29.474 3025 3025 I 02F00/HUKS: RecordKeyOperation[938]: use key, storage path: /storage/data/service/el1/public/huks_service/maindata/hksclient/info, key alias: rinfo2****data

01-06 16:58:29.474 3025 3025 W 02C02/PARAM: [param_base.c:447]Param 'const.product.udid' label gid:12 uid:12 mode 0100 01-06 16:58:29.474 3025 3025 W 02C02/PARAM: [param_base.c:448]Cfg label 5984 gid:-1 uid:0 mode 01e8 01-06 16:58:29.474 3025 3025 E 02C02/PARAM: [param_manager.c:641]Forbid to access const.product.udid label 5984 0 01-06 16:58:29.474 3025 3025 W 02C02/PARAM: [param_base.c:447]Param 'const.product.devUdid' label gid:12 uid:12 mode 0100 01-06 16:58:29.474 3025 3025 W 02C02/PARAM: [param_base.c:448]Cfg label 6032 gid:-1 uid:0 mode 01e8 01-06 16:58:29.474 3025 3025 E 02C02/PARAM: [param_manager.c:641]Forbid to access const.product.devUdid label 6032 0 01-06 16:58:29.474 3025 3025 I 02F00/HUKS: Init[70]: HUKS service init

01-06 16:58:29.474 3025 3025 I 02F00/HUKS: Init[183]: HUKS feature init

01-06 16:58:29.490 3025 3025 I 01800/Samgr: Bootstrap core services(count:1). 01-06 16:58:29.490 3025 3025 I 01800/Samgr: Init service:huks_service 01-06 16:58:29.490 3026 3025 I 01800/Samgr: Initialize Client Registry! 01-06 16:58:29.490 3026 3025 I 01800/Samgr: Init service huks_service <time: 16ms> success! 01-06 16:58:29.505 3026 3025 I 01800/Samgr: Initialized all core system services! 01-06 16:58:29.505 3026 3025 I 01800/Samgr: Goto next boot step return code:-9 01-06 16:58:29.505 1281 1219 I 01518/IPCRPC: ipc skeleton wait for proxy init 01-06 16:58:29.521 1281 1219 E 01518/IPCRPC: invalid callback id. 01-06 16:58:29.521 1281 1219 E 01518/IPCRPC: first add death callback for handle = 4. 01-06 16:58:29.521 1281 1219 I 01800/Samgr: Register Endpoint<3025, 4, 0> 01-06 16:58:29.536 3027 3025 E 01518/IPCRPC: invalid callback id. 01-06 16:58:29.536 1281 1219 D 01800/Samgr: Register Feature<huks_service, huks_feature> pid<3025>, id<4, 0> ret:0 01-06 16:58:29.536 3027 3025 D 01800/Samgr: RegisterRemoteFeatures<huks_service, huks_feature> ret:0 01-06 16:58:29.536 3027 3025 I 01800/Samgr: Register endpoint<ipc client> and iunknown finished! remain<0> iunknown! 01-06 16:58:29.732 3022 3022 I 02F00/HUKS: HksGenerateKey[105]: enter generate key

01-06 16:58:29.732 3022 3022 I 01518/IPCRPC: Internal ipc request called Signal 11

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论3

深开鸿_王石

沙发 发表于 2024-12-9 18:21:35
[INFO] GenerateAesAgreeKey: Test_Aes_gen_by_agree key!
01-06 16:58:29.306 3022 3022 I 02F00/HUKS: HksImportKey[141]: leave import key, result = 0

01hilog ringbuffer full, drop 4 line(s) log
-06 16:58:29.306 3022 3022 I 02F00/HUKS: HksGenerateKey[105]: enter generate key

01-06 16:58:29.307 2994 2992 I 02F00/HUKS: RecordKeyOperation[941]: delete key or certchain, storage path: /storage/data/service/el1/public/huks_service/maindata/+0+0+0+0/key, key alias: test_aes_key_by_agree_name_k****ias1
[ASSERT]GenerateAesAgreeKey:fail

[INFO] GenerateAesAgreeKey: End Test_Aes_gen_by_agree key! 这个case错了,你看看流程呗

scyff

发表于 2024-12-10 12:55  IP属地: 江苏省扬州市

回复 深开鸿_王石: 老师  您能大体推测原因吗?我用的是海思的Hi519dv500 自己研究了好几天了  无法定位具体问题  001 002 003不通过 004就可以通过  

scyff

发表于 2024-12-11 18:07  IP属地: 江苏省扬州市

回复 深开鸿_王石: 老师  能指导下吗  有点卡住了  最终定位说生成共享密钥失败,实在不知道咋解决了

【2 条回复】

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部