• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14DEVICEAUTH_BASIC_DEPS_DIR =
15    "//test/xts/acts/security_lite/deviceauth_basic_deps"
16
17DEVICEAUTH_BASIC_DEPS_SOURCE = [
18  "${DEVICEAUTH_BASIC_DEPS_DIR}/print_log.c",
19  "${DEVICEAUTH_BASIC_DEPS_DIR}/test_timer.c",
20  "${DEVICEAUTH_BASIC_DEPS_DIR}/hc_file_test.c",
21  "${DEVICEAUTH_BASIC_DEPS_DIR}/hc_mutex_test.c",
22  "${DEVICEAUTH_BASIC_DEPS_DIR}/hc_file_f_test.c",
23  "${DEVICEAUTH_BASIC_DEPS_DIR}/hc_thread_test.c",
24  "${DEVICEAUTH_BASIC_DEPS_DIR}/hc_dev_info_test.c",
25  "${DEVICEAUTH_BASIC_DEPS_DIR}/hc_condition_test.c",
26  "${DEVICEAUTH_BASIC_DEPS_DIR}/hc_file_utils_test.c",
27  "${DEVICEAUTH_BASIC_DEPS_DIR}/hc_file_iot_flash_test.c",
28  "${DEVICEAUTH_BASIC_DEPS_DIR}/hc_time_test.c",
29  "${DEVICEAUTH_BASIC_DEPS_DIR}/hc_file_common.c",
30  "${DEVICEAUTH_BASIC_DEPS_DIR}/hc_alg_test.c",
31]
32
33DEVICEAUTH_BASIC_DEPS_INC = [
34  "//base/iot_hardware/peripheral/interfaces/kits",
35  "//utils/native/lite/include",  # utils_file.h ohos_types.h
36
37  # alg test
38  "//base/security/deviceauth/deps_adapter/key_management_adapter/interfaces",
39  "//base/security/deviceauth/deps_adapter/os_adapter/interfaces",
40  "//base/security/deviceauth/common_lib/interfaces",
41  "//base/security/deviceauth/interfaces/innerkits",
42]
43
44DEVICEAUTH_BASIC_DEPS_ALGORITHM_DEFINES = [
45  "TEST_HKDF_WITH_KEY_ALIAS_TRUE=1",
46  "TEST_IMPORT_SYMMETRIC_KEY=1",
47  "TEST_COMPUTEHMAC_WITH_ISALIAS_TRUE=1",
48  "TEST_HASH_TO_POINT=1",
49  "TEST_GENERATE_KEY_PAIR_WITH_STORAGE=1",
50  "TEST_AGREE_SHARED_SECRET_WITH_STORAGE=1",
51  "TEST_AGREE_SHARED_SECRET=1",
52  "TEST_BIG_NUM_EXP_MOD=1",
53  "TEST_EXPORT_IMPORT_SIGN_VERIFY_ED25519=1",
54  "TEST_EXPORT_IMPORT_SIGN_VERIFY_P256=1",
55  "TEST_BIG_NUM_COMPARE=1",
56  "TEST_GENERATE_KEY_PAIR=1",
57  "TEST_EXPORT_PUBLIC_KEY=1",
58  "TEST_ALGORITHM_SIGN=1",
59  "TEST_ALGORITHM_VERIFY=1",
60  "TEST_IMPORT_PUBLIC_KEY=1",
61  "TEST_CHECK_DL_PUBLIC_KEY=1",
62  "TEST_CHECK_KEY_EXIST=1",
63  "TEST_DELETE_KEY=1",
64  "TEST_AES_GCM_ENCRYPT=1",
65  "TEST_AES_GCM_DECRYPT=1",
66]
67