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