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("ActsHuksHalFunctionTest") { 20 suite_name = "acts" 21 sources = [ 22 "hks_aes_test.c", 23 "hks_agreement_test.c", 24 "hks_bn_exp_mod_test.c", 25 "hks_cipher_test.c", 26 "hks_curve25519_test.c", 27 "hks_delete_test.c", 28 "hks_derive_test.c", 29 "hks_exist_test.c", 30 "hks_generate_key_test.c", 31 "hks_generate_random_test.c", 32 "hks_hash_test.c", 33 "hks_mac_test.c", 34 "hks_others_test.c", 35 ] 36 include_dirs = [ 37 "//base/security/huks/interfaces/inner_api/huks_standard/main/include", 38 "//base/iothardware/peripheral/interfaces/inner_api", 39 "//base/security/huks/frameworks/huks_standard/main/common/include", 40 "../common/include", 41 ] 42 43 deps = [ "//test/xts/acts/security_lite/huks/common:huks_test_common" ] 44 45 cflags = [ 46 "-D_CUT_ED25519_", 47 "-D_CUT_LOG_", 48 ] 49 if (disable_authenticate == true) { 50 cflags += [ "-D_CUT_AUTHENTICATE_" ] 51 } 52} 53