• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2023 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
14import("//base/security/huks/build/config.gni")
15import("//build/config/features.gni")
16import("//build/test.gni")
17
18ohos_fuzztest("huks_hdi_importwrappedkey_fuzz") {
19  module_out_path = "hdf/huks"
20  fuzz_config_file = "../importwrappedkeyfuzz"
21  cflags = [
22    "-g",
23    "-O0",
24    "-Wno-unused-variable",
25    "-fno-omit-frame-pointer",
26  ]
27  include_dirs = [
28    "../../../hdi_service",
29    "../",
30  ]
31
32  if (huks_security_level == "software") {
33    defines = [ "HUKS_HDI_SOFTWARE" ]
34  }
35
36  sources = [
37    "../huks_hdi_fuzz_common.cpp",
38    "huks_hdi_fuzzer.cpp",
39  ]
40
41  deps = [ "../../../hdi_service:libhuks_hdi_service_1.0" ]
42
43  external_deps = [
44    "c_utils:utils",
45    "drivers_interface_huks:huks_idl_headers",
46    "hilog:libhilog",
47  ]
48
49  subsystem_name = "hdf"
50  part_name = "drivers_peripheral_huks"
51}
52