• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022-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
14declare_args() {
15  crypto_framework_enabled = true
16}
17
18group("crypto_framework_component") {
19  if (os_level == "standard") {
20    deps = [
21      "frameworks:crypto_framework_lib",
22      "frameworks/cj:cj_cryptoframework_ffi",
23      "frameworks/js/napi/crypto:cryptoframework_napi",
24      "frameworks/native:ohcrypto",
25      "plugin:crypto_openssl_plugin_lib",
26    ]
27  } else if (os_level == "mini") {
28    deps = [
29      "frameworks:crypto_framework_lib",
30      "frameworks/js/jsi:cryptoframework_jsi",
31      "plugin:crypto_mbedtls_plugin_lib",
32    ]
33  }
34}
35
36group("crypto_framework_test") {
37  testonly = true
38  if (os_level == "standard") {
39    deps = [ "test/unittest:crypto_framework_test" ]
40  }
41}
42
43group("crypto_framework_fuzztest") {
44  testonly = true
45  deps = []
46  if (os_level == "standard") {
47    deps += [
48      "test/fuzztest/crypto_operation/hcfciphercreate_fuzzer:fuzztest",
49      "test/fuzztest/crypto_operation/hcfkdfcreate_fuzzer:fuzztest",
50      "test/fuzztest/crypto_operation/hcfkeyagreementcreate_fuzzer:fuzztest",
51      "test/fuzztest/crypto_operation/hcfmaccreate_fuzzer:fuzztest",
52      "test/fuzztest/crypto_operation/hcfmdcreate_fuzzer:fuzztest",
53      "test/fuzztest/crypto_operation/hcfsigncreate_fuzzer:fuzztest",
54      "test/fuzztest/crypto_operation/hcfsm2create_fuzzer:fuzztest",
55      "test/fuzztest/crypto_operation/hcfverifycreate_fuzzer:fuzztest",
56      "test/fuzztest/key/asykeygenerator_fuzzer:fuzztest",
57      "test/fuzztest/key/dhkeyutil_fuzzer:fuzztest",
58      "test/fuzztest/key/ecckeyutil_fuzzer:fuzztest",
59      "test/fuzztest/key/symkeygenerator_fuzzer:fuzztest",
60      "test/fuzztest/rand/hcfrandcreate_fuzzer:fuzztest",
61    ]
62  }
63}
64