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 } 28} 29 30group("crypto_framework_test") { 31 testonly = true 32 if (os_level == "standard") { 33 deps = [ "test/unittest:crypto_framework_test" ] 34 } 35} 36 37group("crypto_framework_fuzztest") { 38 testonly = true 39 deps = [] 40 if (os_level == "standard") { 41 deps += [ 42 "test/fuzztest/crypto_operation/hcfciphercreate_fuzzer:fuzztest", 43 "test/fuzztest/crypto_operation/hcfkdfcreate_fuzzer:fuzztest", 44 "test/fuzztest/crypto_operation/hcfkeyagreementcreate_fuzzer:fuzztest", 45 "test/fuzztest/crypto_operation/hcfmaccreate_fuzzer:fuzztest", 46 "test/fuzztest/crypto_operation/hcfmdcreate_fuzzer:fuzztest", 47 "test/fuzztest/crypto_operation/hcfsigncreate_fuzzer:fuzztest", 48 "test/fuzztest/crypto_operation/hcfsm2create_fuzzer:fuzztest", 49 "test/fuzztest/crypto_operation/hcfverifycreate_fuzzer:fuzztest", 50 "test/fuzztest/key/asykeygenerator_fuzzer:fuzztest", 51 "test/fuzztest/key/dhkeyutil_fuzzer:fuzztest", 52 "test/fuzztest/key/ecckeyutil_fuzzer:fuzztest", 53 "test/fuzztest/key/symkeygenerator_fuzzer:fuzztest", 54 "test/fuzztest/rand/hcfrandcreate_fuzzer:fuzztest", 55 ] 56 } 57} 58