Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
4df21019
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
4df21019
编写于
3月 29, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 29, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2914 内源问题整改上库
Merge pull request !2914 from 胡吉翔/security_20220328_1
上级
970e90a7
73988538
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
4 addition
and
5 deletion
+4
-5
security/huks_standard/hks_xts_common.test.js
security/huks_standard/hks_xts_common.test.js
+2
-2
security_lite/huks/liteos_a_adapter/hks_agreement_test.cpp
security_lite/huks/liteos_a_adapter/hks_agreement_test.cpp
+0
-1
security_lite/huks/liteos_m_adapter/hks_safe_cipher_key_test.c
...ity_lite/huks/liteos_m_adapter/hks_safe_cipher_key_test.c
+1
-1
security_lite/huks/liteos_m_adapter/hks_safe_compare_key_test.c
...ty_lite/huks/liteos_m_adapter/hks_safe_compare_key_test.c
+1
-1
未找到文件。
security/huks_standard/hks_xts_common.test.js
浏览文件 @
4df21019
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
import
hks
from
'
@ohos.security.huks
'
import
hks
from
'
@ohos.security.huks
'
export
var
alias
=
'
alias
'
;
export
const
alias
=
'
alias
'
;
export
var
aliasA
=
'
aliasA
'
;
export
const
aliasA
=
'
aliasA
'
;
export
var
aliasB
=
'
aliasB
'
;
export
var
aliasB
=
'
aliasB
'
;
export
var
targetAlias
=
'
targetAlias
'
;
export
var
targetAlias
=
'
targetAlias
'
;
...
...
security_lite/huks/liteos_a_adapter/hks_agreement_test.cpp
浏览文件 @
4df21019
...
@@ -154,7 +154,6 @@ HWTEST_F(HksAgreementTest, HksAgreementTest002, TestSize.Level1)
...
@@ -154,7 +154,6 @@ HWTEST_F(HksAgreementTest, HksAgreementTest002, TestSize.Level1)
struct
HksBlob
*
peerPubKeyAlias
=
NULL
;
struct
HksBlob
*
peerPubKeyAlias
=
NULL
;
struct
HksBlob
*
peerPublicKey
=
NULL
;
struct
HksBlob
*
peerPublicKey
=
NULL
;
struct
HksBlob
*
privateKey2
=
NULL
;
struct
HksBlob
*
privateKey2
=
NULL
;
struct
HksBlob
*
peerPubKeyAlias2
=
NULL
;
struct
HksBlob
*
peerPublicKey2
=
NULL
;
struct
HksBlob
*
peerPublicKey2
=
NULL
;
int32_t
ret
;
int32_t
ret
;
...
...
security_lite/huks/liteos_m_adapter/hks_safe_cipher_key_test.c
浏览文件 @
4df21019
...
@@ -100,7 +100,7 @@ static int32_t GetKeyOffsetByKeyAlias(const struct HksBlob *keyAlias, uint32_t *
...
@@ -100,7 +100,7 @@ static int32_t GetKeyOffsetByKeyAlias(const struct HksBlob *keyAlias, uint32_t *
/* 2. traverse imageBuffer to search for keyAlias */
/* 2. traverse imageBuffer to search for keyAlias */
uint32_t
offset
=
sizeof
(
*
keyInfoHead
);
uint32_t
offset
=
sizeof
(
*
keyInfoHead
);
for
(
uint
16
_t
i
=
0
;
i
<
keyCount
;
++
i
)
{
for
(
uint
32
_t
i
=
0
;
i
<
keyCount
;
++
i
)
{
uint8_t
*
tmpBuf
=
storageBuf
.
data
+
offset
;
uint8_t
*
tmpBuf
=
storageBuf
.
data
+
offset
;
struct
HksStoreKeyInfo
*
keyInfo
=
(
struct
HksStoreKeyInfo
*
)
tmpBuf
;
struct
HksStoreKeyInfo
*
keyInfo
=
(
struct
HksStoreKeyInfo
*
)
tmpBuf
;
if
(
keyInfo
->
aliasSize
==
keyAlias
->
size
)
{
if
(
keyInfo
->
aliasSize
==
keyAlias
->
size
)
{
...
...
security_lite/huks/liteos_m_adapter/hks_safe_compare_key_test.c
浏览文件 @
4df21019
...
@@ -164,7 +164,7 @@ static int32_t GetKeyOffsetByKeyAlias(const struct HksBlob *keyAlias, uint32_t *
...
@@ -164,7 +164,7 @@ static int32_t GetKeyOffsetByKeyAlias(const struct HksBlob *keyAlias, uint32_t *
/* 2. traverse imageBuffer to search for keyAlias */
/* 2. traverse imageBuffer to search for keyAlias */
uint32_t
offset
=
sizeof
(
*
keyInfoHead
);
uint32_t
offset
=
sizeof
(
*
keyInfoHead
);
for
(
uint
16
_t
i
=
0
;
i
<
keyCount
;
++
i
)
{
for
(
uint
32
_t
i
=
0
;
i
<
keyCount
;
++
i
)
{
uint8_t
*
tmpBuf
=
storageBuf
.
data
+
offset
;
uint8_t
*
tmpBuf
=
storageBuf
.
data
+
offset
;
struct
HksStoreKeyInfo
*
keyInfo
=
(
struct
HksStoreKeyInfo
*
)
tmpBuf
;
struct
HksStoreKeyInfo
*
keyInfo
=
(
struct
HksStoreKeyInfo
*
)
tmpBuf
;
if
(
keyInfo
->
aliasSize
==
keyAlias
->
size
)
{
if
(
keyInfo
->
aliasSize
==
keyAlias
->
size
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录