1# Copyright (C) 2022 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/certificate", 21 "${base_path}/interfaces/innerkits/common", 22 "${base_path}/interfaces/innerkits/crypto_operation", 23 "${base_path}/interfaces/innerkits/key", 24 "${base_path}/interfaces/innerkits/rand", 25 "${base_path}/common/inc", 26 "${plugin_path}/openssl_plugin/aes/inc", 27 "${plugin_path}/openssl_plugin/certificate/inc", 28 "${plugin_path}/openssl_plugin/crypto_operation/key_agreement/inc", 29 "${plugin_path}/openssl_plugin/crypto_operation/signature/inc", 30 "${plugin_path}/openssl_plugin/crypto_operation/aes/inc", 31 "${plugin_path}/openssl_plugin/key/sym_key_generator/inc", 32 "${plugin_path}/openssl_plugin/key/asy_key_generator/inc", 33 "${plugin_path}/openssl_plugin/certificate/inc", 34 "${plugin_path}/openssl_plugin/crypto_operation/hmac/inc", 35 "${plugin_path}/openssl_plugin/crypto_operation/md/inc", 36 "${plugin_path}/openssl_plugin/crypto_operation/rsa/inc", 37 "${plugin_path}/openssl_plugin/rand/inc", 38 "${framework_path}/spi", 39] 40 41framework_certificate_files = [ 42 "${framework_path}/certificate/cert_chain_validator.c", 43 "${framework_path}/certificate/x509_certificate.c", 44 "${framework_path}/certificate/x509_crl.c", 45] 46 47framework_cipher_files = [ "${framework_path}/crypto_operation/cipher.c" ] 48 49framework_signature_files = [ "${framework_path}/crypto_operation/signature.c" ] 50 51framework_key_agreement_files = 52 [ "${framework_path}/crypto_operation/key_agreement.c" ] 53 54framework_key_files = [ 55 "${framework_path}/key/asy_key_generator.c", 56 "${framework_path}/key/sym_key_generator.c", 57] 58 59framework_mac_files = [ "${framework_path}/crypto_operation/mac.c" ] 60 61framework_rand_files = [ "${framework_path}/rand/rand.c" ] 62 63framework_md_files = [ "${framework_path}/crypto_operation/md.c" ] 64 65framework_files = 66 framework_certificate_files + framework_key_agreement_files + 67 framework_signature_files + framework_cipher_files + framework_key_files + 68 framework_mac_files + framework_rand_files + framework_md_files 69