1# Copyright (C) 2022-2024 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 14base_path = "//base/security/crypto_framework" 15framework_path = "//base/security/crypto_framework/frameworks" 16plugin_path = "//base/security/crypto_framework/plugin" 17 18framework_inc_path = [ 19 "${base_path}/interfaces/innerkits/algorithm_parameter", 20 "${base_path}/interfaces/innerkits/common", 21 "${base_path}/interfaces/innerkits/crypto_operation", 22 "${base_path}/interfaces/innerkits/key", 23 "${base_path}/common/inc", 24 "${plugin_path}/openssl_plugin/common/inc", 25 "${plugin_path}/openssl_plugin/crypto_operation/kdf/inc", 26 "${plugin_path}/openssl_plugin/crypto_operation/key_agreement/inc", 27 "${plugin_path}/openssl_plugin/crypto_operation/signature/inc", 28 "${plugin_path}/openssl_plugin/crypto_operation/cipher/inc", 29 "${plugin_path}/openssl_plugin/key/sym_key_generator/inc", 30 "${plugin_path}/openssl_plugin/key/asy_key_generator/inc", 31 "${plugin_path}/openssl_plugin/crypto_operation/hmac/inc", 32 "${plugin_path}/openssl_plugin/crypto_operation/md/inc", 33 "${plugin_path}/openssl_plugin/crypto_operation/rand/inc", 34 "${framework_path}/spi", 35] 36 37framework_cipher_files = [ "${framework_path}/crypto_operation/cipher.c" ] 38 39framework_signature_files = [ "${framework_path}/crypto_operation/signature.c" ] 40 41framework_key_agreement_files = 42 [ "${framework_path}/crypto_operation/key_agreement.c" ] 43 44framework_key_files = [ 45 "${framework_path}/key/asy_key_generator.c", 46 "${framework_path}/key/dh_key_util.c", 47 "${framework_path}/key/ecc_key_util.c", 48 "${framework_path}/key/key_utils.c", 49 "${framework_path}/key/sym_key_generator.c", 50] 51 52framework_mac_files = [ "${framework_path}/crypto_operation/mac.c" ] 53 54framework_rand_files = [ "${framework_path}/crypto_operation/rand.c" ] 55 56framework_md_files = [ "${framework_path}/crypto_operation/md.c" ] 57 58framework_kdf_files = [ "${framework_path}/crypto_operation/kdf.c" ] 59 60framework_sm2_crypto_util_files = 61 [ "${framework_path}/crypto_operation/sm2_crypto_util.c" ] 62 63framework_files = 64 framework_key_agreement_files + framework_signature_files + 65 framework_cipher_files + framework_key_files + framework_mac_files + 66 framework_rand_files + framework_md_files + framework_kdf_files + 67 framework_sm2_crypto_util_files 68