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 "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_modify_key_test.c", 35 "hks_others_test.c", 36 "hks_safe_cipher_key_test.c", 37 "hks_safe_compare_key_test.c", 38 ] 39 include_dirs = [ 40 "//base/security/huks/interfaces/innerkits/huks_lite", 41 "//base/security/huks/interfaces/innerkits/huks_standard/main/include", 42 "../common/include", 43 ] 44 45 deps = [ 46 #"//base/security/huks/interfaces/innerkits/huks_lite:huks_3.0_sdk", 47 "//base/security/huks/test/unittest/huks_lite_test/common:huks_3.0_test_common", 48 ] 49 50 cflags = [ 51 "-D_CUT_ED25519_", 52 "-D_CUT_LOG_", 53 "-Wall", 54 "-Werror", 55 ] 56 if (disable_authenticate == true) { 57 cflags += [ "-D_CUT_AUTHENTICATE_" ] 58 } 59} 60