Commit Graph

715 Commits

Author SHA1 Message Date
weizhaohui
7d5f29729c
update test/unittest/huks_standard_test/three_stage_test/BUILD.gn.
add tdd

Signed-off-by: weizhaohui <weizhaohui@huawei.com>
2024-07-12 01:58:44 +00:00
code4lala
5899d4f94a fix HksSessionMaxTest.HksSessionMaxTest001
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: I808cb1f9ba922544008f35aba1618732cb7fe780
2024-07-09 20:54:08 +08:00
weizhaohui
912fa15a7f add tdd
Signed-off-by: weizhaohui <weizhaohui@huawei.com>
2024-07-09 15:56:30 +08:00
weizhaohui
0a69cfb586 add tdd
Signed-off-by: weizhaohui <weizhaohui@huawei.com>
2024-07-09 15:07:30 +08:00
weizhaohui
e841f9637c add tdd
Signed-off-by: weizhaohui <weizhaohui@huawei.com>
2024-07-09 14:45:58 +08:00
weizhaohui
fb5f7b4e85 add TDD
Signed-off-by: weizhaohui <weizhaohui@huawei.com>
2024-07-09 12:02:16 +08:00
y30053096
d1f8d0ae10 modify token external dep
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: Iae0a4a7289e69a1f094c71e58ba2a48adbcd74fc
2024-07-05 14:37:42 +08:00
y30053096
d16a596009 check public key
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I3cacfc32b1a9c82317bff07ff92307727c53bccf
2024-07-02 17:46:45 +08:00
y30053096
9c3bf89a13 fix module test
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I90e65b8ce9354593b959877273a55d72ea24052d
2024-06-25 11:20:00 +08:00
tangboyi
7f1a4faaad 补齐容灾备份功能
Signed-off-by: tangboyi <tangboyi1@huawei.com>
Change-Id: I91a49ffe96f13aa1cb9a641e9dfa862bba119401
Signed-off-by: tangboyi <tangboyi1@huawei.com>
2024-06-14 19:39:54 +08:00
openharmony_ci
a307509616
!1138 优化huks测试文件编译
Merge pull request !1138 from 杨欢欢/compile
2024-06-06 13:49:19 +00:00
y30053096
4069e45db6 independent compile for huks test
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I84cd57eed22f89bdce9d26811b55dc34fc4e5e16
2024-06-06 11:56:39 +08:00
code4lala
b68859daa9 rm check
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: I56da41ac5312874b595d92c87f9edfe87975594d
2024-06-05 09:16:12 +08:00
tangboyi
66e90f2e93 修复容灾备份编译问题
Signed-off-by: tangboyi <tangboyi1@huawei.com>
Change-Id: I022df2d242af06039a0a164115561516e447636a
Signed-off-by: tangboyi <tangboyi1@huawei.com>
2024-06-03 10:40:13 +08:00
zhang-wenzhi821
ad8e21ec75 add user unlock codes
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-05-26 15:40:38 +08:00
zhang-wenzhi821
67f8206158 fix programming problem
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-05-25 19:49:33 +08:00
y30053096
5fe6da82a0 modify errorcode
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: Id9fdb25ec21a75f0141bf0de7346056cef014cf8
2024-05-23 15:32:02 +08:00
openharmony_ci
82b25e32c6
!1145 d2c
Merge pull request !1145 from CheungVane/master
2024-05-11 09:14:01 +00:00
zhang-wenzhi821
94cfaddb55 fix warning
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-05-08 16:15:23 +08:00
zhang-wenzhi821
c2d35abc8b add test fix
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-05-08 16:04:15 +08:00
zhang-wenzhi821
703bf67ba4 fix warning
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-05-06 20:40:14 +08:00
zhang-wenzhi821
3cba7c79f9 improve test codes
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-05-06 17:27:33 +08:00
zhang-wenzhi821
e6b8dbc2a2 improve d2c codes
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-05-06 16:23:31 +08:00
zhang-wenzhi821
43a5627bc3 add d2c codes
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-05-06 15:24:54 +08:00
code4lala
cb44117a90 HksCheckAuthTest006 HKS_ERROR_INVALID_ARGUMENT->HKS_ERROR_INVALID_ACCESS_TYPE
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: I5c0fd1f63d8d26189bb0d07c3578f5d981ee8235
2024-05-06 10:12:22 +08:00
openharmony_ci
0722f95c2e
!1133 代码优化
Merge pull request !1133 from 孟立/master
2024-04-30 06:36:14 +00:00
ml
3b44ef3568 Signed-off-by: ml <mengli12@huawei.com> 2024-04-29 17:47:55 +08:00
ml
9203964755 Signed-off-by: ml <mengli12@huawei.com> 2024-04-29 17:32:44 +08:00
ml
3fff7aa55a Signed-off-by: ml <mengli12@huawei.com> 2024-04-28 15:14:08 +08:00
openharmony_ci
18f8a4c965
!1110 单框架HUKS支持批量查询密钥别名
Merge pull request !1110 from 孟立/master
2024-04-28 06:29:09 +00:00
openharmony_ci
d84eb470a9
!1132 修复hmac派生哈希长度与密钥长度不一致
Merge pull request !1132 from 杨欢欢/hmac
2024-04-27 09:56:13 +00:00
y30053096
3ed9c38233 fix hmac derive
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I5c044272f0a716365f58e0b1a337e9f904836435
2024-04-27 17:18:28 +08:00
ml
5b0f52aaf6 Signed-off-by: ml <mengli12@huawei.com> 2024-04-26 13:01:10 +08:00
ml
65261fa9e8 Signed-off-by: ml <mengli12@huawei.com> 2024-04-26 12:57:13 +08:00
code4lala
f50baa6908 add checking whether tokenType is LOCAL_AUTH
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: Ia5ebb4901fc7981cc80a42df6dadcd594da7d18d
2024-04-26 12:03:44 +08:00
ml
4d736e7a46 Signed-off-by: ml <mengli12@huawei.com> 2024-04-26 11:54:21 +08:00
ml
cff964d15d Signed-off-by: ml <mengli12@huawei.com> 2024-04-26 11:50:15 +08:00
ml
7d666d0aea Signed-off-by: ml <mengli12@huawei.com> 2024-04-25 11:59:09 +08:00
zhang-wenzhi821
54af3d280c Merge branch 'master' of https://gitee.com/openharmony/security_huks 2024-04-22 10:00:28 +08:00
openharmony_ci
cb03a7b7a4
!1112 【优化】hks代码优化,消除异常错误日志 & CCM用例优化
Merge pull request !1112 from Lee/master
2024-04-19 01:25:11 +00:00
HighLowWorld
3e0563641e hks code modify
Signed-off-by: HighLowWorld <liguozhu3@huawei.com>
2024-04-18 20:35:29 +08:00
openharmony_ci
e9505b0250
!1109 huks新增框架
Merge pull request !1109 from ailu/master
2024-04-17 13:02:11 +00:00
openharmony_ci
849592500a
!1099 [Bug]: huks lite部件编译aarch64编译报错
Merge pull request !1099 from 三分之一/master
2024-04-17 04:49:42 +00:00
ailu1
547172dcf0 build format
Signed-off-by: ailu1 <jinyanhong1@huawei.com>
2024-04-17 02:44:09 +08:00
ailu1
e83cd6fd65 fix build
Signed-off-by: ailu1 <jinyanhong1@huawei.com>
2024-04-17 02:34:49 +08:00
ailu1
0cc1deb6a3 ext framework
Signed-off-by: ailu1 <jinyanhong1@huawei.com>
2024-04-17 01:38:47 +08:00
zhang-wenzhi821
a1001a6ac0 change the ce test of user 333 into 100 as real
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-04-16 09:26:37 +08:00
ailu1
c46c472c86 fix x25519 derive tdd codecheck
Signed-off-by: ailu1 <jinyanhong1@huawei.com>
2024-04-14 15:05:51 +08:00
ailu1
6a1582d517 fix x25519 derive tdd gnformat
Signed-off-by: ailu1 <jinyanhong1@huawei.com>
2024-04-14 14:02:24 +08:00
ailu1
f634000463 fix x25519 derive tdd1
Signed-off-by: ailu1 <jinyanhong1@huawei.com>
2024-04-14 13:23:56 +08:00
ailu1
0472e3258b fix x25519 derive tdd
Signed-off-by: ailu1 <jinyanhong1@huawei.com>
2024-04-14 13:19:49 +08:00
ailu1
5581b803f2 x25519 derive tdd
Signed-off-by: ailu1 <jinyanhong1@huawei.com>
2024-04-13 21:55:46 +08:00
zhang-wenzhi821
4c772fb7ee fix mini programming problem
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-04-13 15:59:45 +08:00
zhang-wenzhi821
ad0e373fb7 remove redundant comments
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-04-13 12:05:03 +08:00
zhang-wenzhi821
887871ee13 fix test problem
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-04-13 11:51:25 +08:00
zhang-wenzhi821
fb95a8b637 improve storage module
Signed-off-by: zhangwenzhi <zhangwenzhi3@huawei.com>
2024-04-13 11:45:38 +08:00
openharmony_ci
5336c0454d
!1096 HAMC派生密钥
Merge pull request !1096 from 杨欢欢/hmac
2024-04-12 06:15:52 +00:00
y30053096
18ec71b96a add test for hmac derive
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I6ee884f79ac8967b02c0f8c5568ea525e6a4eab3
2024-04-12 11:21:54 +08:00
HighLowWorld
678103056e huks support aes-ccm
Signed-off-by: HighLowWorld <liguozhu3@huawei.com>
2024-04-11 21:03:09 +08:00
guojianlong
3716b51fce [bug] fix small形态64位编译错误
Signed-off-by: guojianlong <jianlong.guo@huawei.com>
2024-04-11 11:31:36 +08:00
tangboyi
57553b264f 文件操作模块重构
Signed-off-by: tangboyi <tangboyi1@huawei.com>
Change-Id: If92c53d9073c00063628e2f27fae0ff9ec52ad84
2024-04-10 17:44:23 +08:00
openharmony_ci
0da00927f4
!1074 SM4新增CFB和OFB分组模式
Merge pull request !1074 from 杨欢欢/sm4
2024-04-07 07:45:10 +00:00
y30053096
c0f7420827 add CFB and OFB for SM4
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I06446b4e158fa709a53c76cb08d94f34831135b8
2024-04-02 20:33:30 +08:00
code4lala
75ddf0a4ce as user
Signed-off-by: code4lala <fengziteng2@huawei.com>
2024-03-26 17:48:10 +08:00
y30053096
3b167459d7 independent compile
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: Iccfffa5b1a707209d66a9ca6ddbd79182e96b0e0
2024-03-25 16:15:49 +08:00
y30053096
4c8058fa4d independently compile
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I7d7b0fa06c9852b1404f3e7d6bef23781195de84
2024-03-19 17:00:18 +08:00
w00804697
04802eacff Description: repair tdd
Signed-off-by: wangshengming <wangshengming6@huawei.com>
2024-03-07 16:08:31 +08:00
code4lala
608814bf68 HapCallHuksBeforeUnlock
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: Iea3ca6724fac1668de6f93d3de99597550627aba
2024-03-05 15:38:29 +08:00
y30053096
4383706ede fix fuzztest
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I7b29649f4c7913bf3a03cf93976058f1f5287b9a
2024-02-21 18:22:37 +08:00
y30053096
a9911607b4 delete failed tdd for L0 device
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I87e5e0d97d673cb67e7303afe30b3bd8cb86c4e9
2024-02-20 14:58:01 +08:00
y30053096
7380cee211 isolate failed tdd
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: Ieb5bc8eb10d4805ef949b37965558549da65b14a
2024-02-18 14:53:51 +08:00
wuXinTao
00321e568e add code for fix TDD2
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2024-02-08 12:49:16 +08:00
wuXinTao
ace69c0807 add code for fix error TDD
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2024-02-07 21:28:00 +08:00
openharmony_ci
4789df5168
!1052 KEYATTEST证书新增SA标记
Merge pull request !1052 from wuXin/master
2024-02-06 10:24:29 +00:00
wuXinTao
bd1e946d5f add code for delete Extra space
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2024-02-06 16:43:11 +08:00
wuXinTao
f6c599cc18 add code for fix "add said"
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2024-02-06 14:47:41 +08:00
openharmony_ci
58a762d3ff
!1043 修复AES GCM模式下AAD为可选参数
Merge pull request !1043 from 杨欢欢/aad
2024-02-06 06:09:24 +00:00
y30053096
13c95f4e02 AES GCM aad is optional
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I1bb77192e5647f6f971956dd0b5f2e80c4481184
2024-02-06 10:59:00 +08:00
wuXinTao
7943231200 add code for add saID (processName)
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2024-02-05 21:48:37 +08:00
code4lala
e82ca7aa50 加一个空格
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: I1f2be51e20d299ac6fcf86d317fcb39fb1ec0231
2024-02-02 16:55:40 +08:00
code4lala
7ff0781c0a fix fuzz HksParamSet
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: I3bbaaa918f87953400b63a2de9d0662b94be9966
2024-02-01 19:51:04 +08:00
openharmony_ci
86a3358e62
!1036 修复编码不规范告警
Merge pull request !1036 from 杨欢欢/master
2024-01-15 12:53:48 +00:00
openharmony_ci
286a93e6a0
!1033 将宏修修改为大写加下划线风格
Merge pull request !1033 from code4lala/fix-code-check
2024-01-15 07:57:26 +00:00
y30053096
c6370d1b86 clean codecheck warnings
Signed-off-by: y30053096 <yangjinhuan@huawei.com>
2024-01-15 15:27:05 +08:00
y30053096
fd39bd321e isolate anonymous attest tdd
Signed-off-by: y30053096 <yangjinhuan@huawei.com>
2024-01-12 18:37:07 +08:00
code4lala
7557042889 将宏修修改为大写加下划线风格 使用Statement Exprs特性要求强制加分号
https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html

Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: Ib4ad9e891710b98c9d096b973cca519aa67abaa2
2024-01-12 17:41:00 +08:00
code4lala
8afe13145d attest ok
fix memory leak, remove HKS_ERROR_NO_PERMISSION device id attest case for HksAnonAttestKey
Revert "add code for delete failed TDD", This reverts commit 663233db03.
ASSERT_TRUE == -> ASSERT_EQ, remove useless header

Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: Ie28724b5fa950eae46b708bf64e8bdfee1a1b17f
2023-12-27 12:15:37 +08:00
openharmony_ci
af2c37bffa
!1003 修改锁屏状态错误码
Merge pull request !1003 from CooperTang/fix_errno
2023-12-25 11:28:36 +00:00
tangboyi
81fa4688b2 新增size指针判空
Signed-off-by: tangboyi <tangboyi1@huawei.com>
Change-Id: I8d58ceaecf2641d5c2cddf143abe3d30aa4a352d
2023-12-25 10:18:05 +08:00
wuXinTao
663233db03 add code for delete failed TDD
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2023-12-19 17:07:39 +08:00
tangboyi
8df777c52c 适配HksFileRead测试用例
Signed-off-by: tangboyi <tangboyi1@huawei.com>
Change-Id: Ib8779457d2e9ba068aa5746ce40f2a600a6c6ac2
2023-12-19 17:01:40 +08:00
wuXinTao
cbce5226c5 add code for fix ket_attest TDD
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2023-12-19 15:35:24 +08:00
wuXinTao
ffd88d9b2d add code for fix tdd
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2023-12-17 17:50:11 +08:00
wuXinTao
9459712579 add code for fix atteat_key permission TDD
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2023-12-17 17:42:11 +08:00
tangboyi
da850e08e1 修复codecheck问题
Signed-off-by: tangboyi <tangboyi1@huawei.com>
Change-Id: I6a8e96612f258ac3ed0743653b076bcd175e82ae
2023-12-16 19:14:12 +08:00
tangboyi
156ddea751 修复L1编译问题
Signed-off-by: tangboyi <tangboyi1@huawei.com>
Change-Id: I89bfcd2792fd9ff2d754809ae3f090642abe9444
2023-12-16 18:09:37 +08:00
tangboyi
8c43e61808 重构FileRead返回值
Signed-off-by: tangboyi <tangboyi1@huawei.com>
Change-Id: I20efdc27558d85c57b5633304d9bbf2fb97d0ca9
2023-12-16 17:20:55 +08:00
wuXinTao
c22e1a1e98 add code for fix format .gn
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2023-12-15 09:33:45 +08:00
wuXinTao
90504efb4a add code for control permission 3
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2023-12-15 09:05:55 +08:00
wuXinTao
9158b8a6fb add code for permission control 2
Signed-off-by: wuxintao <wuxintao5@huawei.com>
2023-12-14 21:20:49 +08:00