1#
2# Copyright (c) 2021 Huawei Device Co., Ltd.
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16import("//base/security/huks/build/config.gni")
17import("//test/xts/tools/lite/build/suite_lite.gni")
18
19hctest_suite("huks_3.0_test") {
20  suite_name = "huks_3.0_test"
21  sources = [
22    "//base/security/huks/test/unittest/huks_common_test/src/hks_bn_exp_mod_test_func.cpp",
23    "//base/security/huks/test/unittest/huks_common_test/src/hks_modify_key_test_func.cpp",
24    "//base/security/huks/test/unittest/huks_common_test/src/hks_test_adapt_for_de.c",
25    "hks_aes_test.c",
26    "hks_agreement_test.c",
27    "hks_bn_exp_mod_test.c",
28    "hks_cipher_test.c",
29    "hks_curve25519_test.c",
30    "hks_delete_test.c",
31    "hks_derive_test.c",
32    "hks_exist_test.c",
33    "hks_generate_key_test.c",
34    "hks_generate_random_test.c",
35    "hks_hash_test.c",
36    "hks_mac_test.c",
37    "hks_others_test.c",
38  ]
39  include_dirs = [
40    "//base/security/huks/frameworks/huks_standard/main/common/include",
41    "//base/security/huks/interfaces/inner_api/huks_lite",
42    "//base/security/huks/interfaces/inner_api/huks_standard/main/include",
43    "../common/include",
44    "//base/security/huks/test/unittest/huks_common_test/include",
45  ]
46
47  deps = [
48    #"//base/security/huks/interfaces/inner_api/huks_lite:huks_3.0_sdk",
49    "//base/security/huks/test/unittest/huks_lite_test/common:huks_3.0_test_common",
50  ]
51
52  cflags = [
53    "-D_CUT_ED25519_",
54    "-D_CUT_LOG_",
55    "-Wall",
56    "-Werror",
57  ]
58  if (disable_authenticate == true) {
59    cflags += [ "-D_CUT_AUTHENTICATE_" ]
60  }
61}
62