提交 73988538 编写于 作者: H hu-jixiang1

neiyuanzhenggai

Signed-off-by: Nhu-jixiang1 <hujixiang1@huawei.com>
Change-Id: I1f58aa0dced4dac12aa4b921de5c20ec14c1dff6
上级 8044eb3e
......@@ -15,8 +15,8 @@
import hks from '@ohos.security.huks'
export var alias = 'alias';
export var aliasA = 'aliasA';
export const alias = 'alias';
export const aliasA = 'aliasA';
export var aliasB = 'aliasB';
export var targetAlias = 'targetAlias';
......
......@@ -154,7 +154,6 @@ HWTEST_F(HksAgreementTest, HksAgreementTest002, TestSize.Level1)
struct HksBlob *peerPubKeyAlias = NULL;
struct HksBlob *peerPublicKey = NULL;
struct HksBlob *privateKey2 = NULL;
struct HksBlob *peerPubKeyAlias2 = NULL;
struct HksBlob *peerPublicKey2 = NULL;
int32_t ret;
......
......@@ -100,7 +100,7 @@ static int32_t GetKeyOffsetByKeyAlias(const struct HksBlob *keyAlias, uint32_t *
/* 2. traverse imageBuffer to search for keyAlias */
uint32_t offset = sizeof(*keyInfoHead);
for (uint16_t i = 0; i < keyCount; ++i) {
for (uint32_t i = 0; i < keyCount; ++i) {
uint8_t *tmpBuf = storageBuf.data + offset;
struct HksStoreKeyInfo *keyInfo = (struct HksStoreKeyInfo *)tmpBuf;
if (keyInfo->aliasSize == keyAlias->size) {
......
......@@ -164,7 +164,7 @@ static int32_t GetKeyOffsetByKeyAlias(const struct HksBlob *keyAlias, uint32_t *
/* 2. traverse imageBuffer to search for keyAlias */
uint32_t offset = sizeof(*keyInfoHead);
for (uint16_t i = 0; i < keyCount; ++i) {
for (uint32_t i = 0; i < keyCount; ++i) {
uint8_t *tmpBuf = storageBuf.data + offset;
struct HksStoreKeyInfo *keyInfo = (struct HksStoreKeyInfo *)tmpBuf;
if (keyInfo->aliasSize == keyAlias->size) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册