标题: 小型系统兼容性测试ActsHuksLiteFunctionTest.HksAesTest001测试没法通过 [打印本页] 作者: scyff 时间: 2024-12-9 17:51 标题: 小型系统兼容性测试ActsHuksLiteFunctionTest.HksAesTest001测试没法通过 [md]./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](336): enter
[INFO] [GenerateBaseKey](148): 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](148): 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](301): 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_name_ed25519_****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_name_ed25519_****bkey
[INFO] [ImportPubKey](301): 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_name_ed25519_****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_name_ed25519_****bkey
[INFO] [GenerateAesAgreeKey](274): 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](288):fail
[INFO] [GenerateAesAgreeKey](289): End Test_Aes_gen_by_agree key!