• 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/ani:cryptoframework_ani",
24      "frameworks/js/napi/crypto:cryptoframework_napi",
25      "frameworks/native:ohcrypto",
26      "plugin:crypto_openssl_plugin_lib",
27    ]
28  } else if (os_level == "mini") {
29    deps = [
30      "frameworks:crypto_framework_lib",
31      "frameworks/js/jsi:cryptoframework_jsi",
32      "plugin:crypto_mbedtls_plugin_lib",
33    ]
34  }
35}
36
37group("crypto_framework_test") {
38  testonly = true
39  if (os_level == "standard") {
40    deps = [ "test/unittest:crypto_framework_test" ]
41  }
42}
43
44group("crypto_framework_fuzztest") {
45  testonly = true
46  deps = []
47  if (os_level == "standard") {
48    deps += [
49      "test/fuzztest/crypto_operation/hcfciphercreate_fuzzer:fuzztest",
50      "test/fuzztest/crypto_operation/hcfkdfcreate_fuzzer:fuzztest",
51      "test/fuzztest/crypto_operation/hcfkeyagreementcreate_fuzzer:fuzztest",
52      "test/fuzztest/crypto_operation/hcfmaccreate_fuzzer:fuzztest",
53      "test/fuzztest/crypto_operation/hcfmdcreate_fuzzer:fuzztest",
54      "test/fuzztest/crypto_operation/hcfsigncreate_fuzzer:fuzztest",
55      "test/fuzztest/crypto_operation/hcfsm2create_fuzzer:fuzztest",
56      "test/fuzztest/crypto_operation/hcfverifycreate_fuzzer:fuzztest",
57      "test/fuzztest/key/asykeygenerator_fuzzer:fuzztest",
58      "test/fuzztest/key/dhkeyutil_fuzzer:fuzztest",
59      "test/fuzztest/key/ecckeyutil_fuzzer:fuzztest",
60      "test/fuzztest/key/symkeygenerator_fuzzer:fuzztest",
61      "test/fuzztest/rand/hcfrandcreate_fuzzer:fuzztest",
62    ]
63  }
64}
65