Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
42cd311f
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看板
提交
42cd311f
编写于
12月 08, 2021
作者:
O
openharmony_ci
提交者:
Gitee
12月 08, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1322 [testcasesfix]fix the bug of huks testcase
Merge pull request !1322 from aaronwangjun/dev2
上级
5cf52eb0
e38d308e
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
50 addition
and
49 deletion
+50
-49
security_lite/huks/liteos_m_adapter/BUILD.gn
security_lite/huks/liteos_m_adapter/BUILD.gn
+1
-0
security_lite/huks/liteos_m_adapter/hks_aes_test.c
security_lite/huks/liteos_m_adapter/hks_aes_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_agreement_test.c
security_lite/huks/liteos_m_adapter/hks_agreement_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_bn_exp_mod_test.c
security_lite/huks/liteos_m_adapter/hks_bn_exp_mod_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_cipher_test.c
security_lite/huks/liteos_m_adapter/hks_cipher_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_curve25519_test.c
security_lite/huks/liteos_m_adapter/hks_curve25519_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_delete_test.c
security_lite/huks/liteos_m_adapter/hks_delete_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_derive_test.c
security_lite/huks/liteos_m_adapter/hks_derive_test.c
+4
-3
security_lite/huks/liteos_m_adapter/hks_exist_test.c
security_lite/huks/liteos_m_adapter/hks_exist_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_generate_key_test.c
security_lite/huks/liteos_m_adapter/hks_generate_key_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_generate_random_test.c
...ity_lite/huks/liteos_m_adapter/hks_generate_random_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_hash_test.c
security_lite/huks/liteos_m_adapter/hks_hash_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_mac_test.c
security_lite/huks/liteos_m_adapter/hks_mac_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_modify_key_test.c
security_lite/huks/liteos_m_adapter/hks_modify_key_test.c
+3
-4
security_lite/huks/liteos_m_adapter/hks_others_test.c
security_lite/huks/liteos_m_adapter/hks_others_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_safe_cipher_key_test.c
...ity_lite/huks/liteos_m_adapter/hks_safe_cipher_key_test.c
+3
-3
security_lite/huks/liteos_m_adapter/hks_safe_compare_key_test.c
...ty_lite/huks/liteos_m_adapter/hks_safe_compare_key_test.c
+3
-3
未找到文件。
security_lite/huks/liteos_m_adapter/BUILD.gn
浏览文件 @
42cd311f
...
@@ -38,6 +38,7 @@ hctest_suite("ActsHuksHalFunctionTest") {
...
@@ -38,6 +38,7 @@ hctest_suite("ActsHuksHalFunctionTest") {
]
]
include_dirs = [
include_dirs = [
"//base/security/huks/interfaces/innerkits/huks_standard/main/include",
"//base/security/huks/interfaces/innerkits/huks_standard/main/include",
"//base/iot_hardware/peripheral/interfaces/kits",
"../common/include",
"../common/include",
]
]
...
...
security_lite/huks/liteos_m_adapter/hks_aes_test.c
浏览文件 @
42cd311f
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
#include "hctest.h"
#include "hctest.h"
#include
<hi_watchdog.h>
#include
"iot_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
#include "securec.h"
#include "securec.h"
...
@@ -48,7 +48,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -48,7 +48,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksAesTestSetUp
()
static
BOOL
HksAesTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -72,7 +72,7 @@ static BOOL HksAesTestSetUp()
...
@@ -72,7 +72,7 @@ static BOOL HksAesTestSetUp()
static
BOOL
HksAesTestTearDown
()
static
BOOL
HksAesTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_agreement_test.c
浏览文件 @
42cd311f
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
#include "hctest.h"
#include "hctest.h"
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_agreement_test.h"
#include "hks_agreement_test.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
...
@@ -57,7 +57,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -57,7 +57,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksAgreementTestSetUp
()
static
BOOL
HksAgreementTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -82,7 +82,7 @@ static BOOL HksAgreementTestTearDown()
...
@@ -82,7 +82,7 @@ static BOOL HksAgreementTestTearDown()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_bn_exp_mod_test.c
浏览文件 @
42cd311f
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
#include "hctest.h"
#include "hctest.h"
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_bn_exp_mod_test.h"
#include "hks_bn_exp_mod_test.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
...
@@ -52,7 +52,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -52,7 +52,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksBnExpModTestSetUp
()
static
BOOL
HksBnExpModTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -76,7 +76,7 @@ static BOOL HksBnExpModTestSetUp()
...
@@ -76,7 +76,7 @@ static BOOL HksBnExpModTestSetUp()
static
BOOL
HksBnExpModTestTearDown
()
static
BOOL
HksBnExpModTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_cipher_test.c
浏览文件 @
42cd311f
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#include "hks_cipher_test.h"
#include "hks_cipher_test.h"
#include "hctest.h"
#include "hctest.h"
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
#include "hks_test_cipher.h"
#include "hks_test_cipher.h"
...
@@ -57,7 +57,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -57,7 +57,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksCipherTestSetUp
()
static
BOOL
HksCipherTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -81,7 +81,7 @@ static BOOL HksCipherTestSetUp()
...
@@ -81,7 +81,7 @@ static BOOL HksCipherTestSetUp()
static
BOOL
HksCipherTestTearDown
()
static
BOOL
HksCipherTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_curve25519_test.c
浏览文件 @
42cd311f
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include "cmsis_os2.h"
#include "cmsis_os2.h"
#include "hctest.h"
#include "hctest.h"
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
#include "hks_test_curve25519.h"
#include "hks_test_curve25519.h"
...
@@ -56,7 +56,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -56,7 +56,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksCurve25519TestSetUp
()
static
BOOL
HksCurve25519TestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -80,7 +80,7 @@ static BOOL HksCurve25519TestSetUp()
...
@@ -80,7 +80,7 @@ static BOOL HksCurve25519TestSetUp()
static
BOOL
HksCurve25519TestTearDown
()
static
BOOL
HksCurve25519TestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_delete_test.c
浏览文件 @
42cd311f
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#ifndef _CUT_AUTHENTICATE_
#ifndef _CUT_AUTHENTICATE_
#include "hctest.h"
#include "hctest.h"
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_delete_test.h"
#include "hks_delete_test.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
...
@@ -82,7 +82,7 @@ static void ExecHksDeleteTest001(void const *argument)
...
@@ -82,7 +82,7 @@ static void ExecHksDeleteTest001(void const *argument)
static
BOOL
HksDeleteTestSetUp
()
static
BOOL
HksDeleteTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -106,7 +106,7 @@ static BOOL HksDeleteTestSetUp()
...
@@ -106,7 +106,7 @@ static BOOL HksDeleteTestSetUp()
static
BOOL
HksDeleteTestTearDown
()
static
BOOL
HksDeleteTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_derive_test.c
浏览文件 @
42cd311f
...
@@ -12,7 +12,8 @@
...
@@ -12,7 +12,8 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
#include "hi_watchdog.h"
#include "iot_watchdog.h"
#include <hctest.h>
#include <hctest.h>
#include "hks_derive_test.h"
#include "hks_derive_test.h"
...
@@ -55,7 +56,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -55,7 +56,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksDeriveTestSetUp
()
static
BOOL
HksDeriveTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -79,7 +80,7 @@ static BOOL HksDeriveTestSetUp()
...
@@ -79,7 +80,7 @@ static BOOL HksDeriveTestSetUp()
static
BOOL
HksDeriveTestTearDown
()
static
BOOL
HksDeriveTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_exist_test.c
浏览文件 @
42cd311f
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#ifndef _CUT_AUTHENTICATE_
#ifndef _CUT_AUTHENTICATE_
#include "hctest.h"
#include "hctest.h"
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_exist_test.h"
#include "hks_exist_test.h"
#include "hks_param.h"
#include "hks_param.h"
...
@@ -89,7 +89,7 @@ static void ExecHksExistTest001(void const *argument)
...
@@ -89,7 +89,7 @@ static void ExecHksExistTest001(void const *argument)
static
BOOL
HksExistTestSetUp
()
static
BOOL
HksExistTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -113,7 +113,7 @@ static BOOL HksExistTestSetUp()
...
@@ -113,7 +113,7 @@ static BOOL HksExistTestSetUp()
static
BOOL
HksExistTestTearDown
()
static
BOOL
HksExistTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_generate_key_test.c
浏览文件 @
42cd311f
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#include "hks_generate_key_test.h"
#include "hks_generate_key_test.h"
#include <hctest.h>
#include <hctest.h>
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
#include "hks_test_api_performance.h"
#include "hks_test_api_performance.h"
...
@@ -56,7 +56,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -56,7 +56,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksGenerateKeyTestSetUp
()
static
BOOL
HksGenerateKeyTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -80,7 +80,7 @@ static BOOL HksGenerateKeyTestSetUp()
...
@@ -80,7 +80,7 @@ static BOOL HksGenerateKeyTestSetUp()
static
BOOL
HksGenerateKeyTestTearDown
()
static
BOOL
HksGenerateKeyTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_generate_random_test.c
浏览文件 @
42cd311f
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
#include "hks_generate_random_test.h"
#include "hks_generate_random_test.h"
#include "hctest.h"
#include "hctest.h"
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
#include "hks_test_api_performance.h"
#include "hks_test_api_performance.h"
...
@@ -54,7 +54,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -54,7 +54,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksGenerateRandomTestSetUp
()
static
BOOL
HksGenerateRandomTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -78,7 +78,7 @@ static BOOL HksGenerateRandomTestSetUp()
...
@@ -78,7 +78,7 @@ static BOOL HksGenerateRandomTestSetUp()
static
BOOL
HksGenerateRandomTestTearDown
()
static
BOOL
HksGenerateRandomTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_hash_test.c
浏览文件 @
42cd311f
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#ifndef _CUT_AUTHENTICATE_
#ifndef _CUT_AUTHENTICATE_
#include <hctest.h>
#include <hctest.h>
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
#include "hks_test_api_performance.h"
#include "hks_test_api_performance.h"
...
@@ -58,7 +58,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -58,7 +58,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksHashTestSetUp
()
static
BOOL
HksHashTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -82,7 +82,7 @@ static BOOL HksHashTestSetUp()
...
@@ -82,7 +82,7 @@ static BOOL HksHashTestSetUp()
static
BOOL
HksHashTestTearDown
()
static
BOOL
HksHashTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_mac_test.c
浏览文件 @
42cd311f
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#include "hks_mac_test.h"
#include "hks_mac_test.h"
#include <hctest.h>
#include <hctest.h>
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
#include "hks_test_api_performance.h"
#include "hks_test_api_performance.h"
...
@@ -79,7 +79,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -79,7 +79,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksMacTestSetUp
()
static
BOOL
HksMacTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -103,7 +103,7 @@ static BOOL HksMacTestSetUp()
...
@@ -103,7 +103,7 @@ static BOOL HksMacTestSetUp()
static
BOOL
HksMacTestTearDown
()
static
BOOL
HksMacTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_modify_key_test.c
浏览文件 @
42cd311f
...
@@ -15,11 +15,10 @@
...
@@ -15,11 +15,10 @@
#ifndef _CUT_AUTHENTICATE_
#ifndef _CUT_AUTHENTICATE_
#include "hks_modify_key_test.h"
#include "hks_modify_key_test.h"
#include <hctest.h>
#include <hctest.h>
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
#include "hks_test_api_performance.h"
#include "hks_test_api_performance.h"
...
@@ -108,7 +107,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -108,7 +107,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksModifyKeyTestSetUp
()
static
BOOL
HksModifyKeyTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -137,7 +136,7 @@ static BOOL HksModifyKeyTestTearDown()
...
@@ -137,7 +136,7 @@ static BOOL HksModifyKeyTestTearDown()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
HksTestRemoveFile
();
HksTestRemoveFile
();
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_others_test.c
浏览文件 @
42cd311f
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#include "hks_others_test.h"
#include "hks_others_test.h"
#include <hctest.h>
#include <hctest.h>
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
#include "hks_type.h"
#include "hks_type.h"
...
@@ -53,7 +53,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -53,7 +53,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksOthersTestSetUp
()
static
BOOL
HksOthersTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -77,7 +77,7 @@ static BOOL HksOthersTestSetUp()
...
@@ -77,7 +77,7 @@ static BOOL HksOthersTestSetUp()
static
BOOL
HksOthersTestTearDown
()
static
BOOL
HksOthersTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_safe_cipher_key_test.c
浏览文件 @
42cd311f
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include "hks_safe_cipher_key_test.h"
#include "hks_safe_cipher_key_test.h"
#include <hctest.h>
#include <hctest.h>
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
#include "hks_test_curve25519.h"
#include "hks_test_curve25519.h"
...
@@ -58,7 +58,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -58,7 +58,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksSafeCipherKeyTestSetUp
()
static
BOOL
HksSafeCipherKeyTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -83,7 +83,7 @@ static BOOL HksSafeCipherKeyTestSetUp()
...
@@ -83,7 +83,7 @@ static BOOL HksSafeCipherKeyTestSetUp()
static
BOOL
HksSafeCipherKeyTestTearDown
()
static
BOOL
HksSafeCipherKeyTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
security_lite/huks/liteos_m_adapter/hks_safe_compare_key_test.c
浏览文件 @
42cd311f
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#include "hks_safe_compare_key_test.h"
#include "hks_safe_compare_key_test.h"
#include <hctest.h>
#include <hctest.h>
#include "
hi
_watchdog.h"
#include "
iot
_watchdog.h"
#include "hks_api.h"
#include "hks_api.h"
#include "hks_param.h"
#include "hks_param.h"
#include "hks_test_api_performance.h"
#include "hks_test_api_performance.h"
...
@@ -62,7 +62,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -62,7 +62,7 @@ static void ExecHksInitialize(void const *argument)
static
BOOL
HksSafeCompareKeyTestSetUp
()
static
BOOL
HksSafeCompareKeyTestSetUp
()
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
hi_watchdog_d
isable
();
IoTWatchDogD
isable
();
osThreadId_t
id
;
osThreadId_t
id
;
osThreadAttr_t
attr
;
osThreadAttr_t
attr
;
g_setPriority
=
osPriorityAboveNormal6
;
g_setPriority
=
osPriorityAboveNormal6
;
...
@@ -86,7 +86,7 @@ static BOOL HksSafeCompareKeyTestSetUp()
...
@@ -86,7 +86,7 @@ static BOOL HksSafeCompareKeyTestSetUp()
static
BOOL
HksSafeCompareKeyTestTearDown
()
static
BOOL
HksSafeCompareKeyTestTearDown
()
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
hi_watchdog_e
nable
();
IoTWatchDogE
nable
();
return
TRUE
;
return
TRUE
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录