已关闭
nearlink_dk_3863_xts_minimal: testGetDevUdid 用例失败,security_unified 驱动被裁剪导致 SHA256 不可用 #732
jiawei-soar创建于 9月14日关闭于 9月15日
openharmony_ci
9月14日 评论:
9月14日 评论:
感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 [@Dufree](https://gitcode.com/Dufree) [@bob_qu](https://gitcode.com/bob_qu) 。如果需要调整订阅PR、Issue的变更状态,请访问链接。
Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer gitcode for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.


9月14日 添加了label:waiting_for_assign
9月14日 关联了pull request:fix(nearlink_dk_3863_xts_minimal): restore security_unified driver to fix testGetDevUdid failure
9月14日 关联了pull request:fix(nearlink_dk_3863_xts_minimal): restore security_unified driver to fix testGetDevUdid failure
9月14日 关联了pull request:fix(nearlink_dk_3863_xts_minimal): restore security_unified driver to fix testGetDevUdid failure
9月14日 关联了pull request:fix(nearlink_dk_3863_xts_minimal): restore security_unified driver to fix testGetDevUdid failure
9月14日 关联了pull request:fix(nearlink_dk_3863_xts_minimal): restore security_unified driver to fix testGetDevUdid failure
9月14日 关联了pull request:fix(nearlink_dk_3863_xts_minimal): restore security_unified driver to fix testGetDevUdid failure
9月15日 关闭了 issue
9月15日 issue状态由 待办的 改变为 已完成
问题描述
nearlink_dk_3863_xts_minimal 产品的
testGetDevUdidXTS 用例失败,GetDevUdid()返回 -1,错误信息为Error: hash start unregister!。原因分析
config_patch.py中ram_component_set裁剪了security_unified驱动,但defines中仍保留MBEDTLS_HARDEN_OPEN,导致:mbedtls_alt_hash_start()mbedtls_alt_hash_init()(注册 Hash 函数)所在的security_unified驱动被裁剪,未编译g_hash_func.start保持 NULL,mbedtls_alt_hash_start()返回 -1GetDevUdid → CalcDevUdid → GetSha256Value → mbedtls_sha256调用链失败影响范围
仅影响
nearlink_dk_3863_xts_minimal产品。nearlink_dk_3863和nearlink_dk_3863_xts使用 SDK 默认配置(包含security_unified),不受影响。修复方案
在
config_patch.py中恢复security_unified驱动,将'-:security_unified'改为'security_unified'。资源开销