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 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/key_agreement/inc", 26 "${plugin_path}/openssl_plugin/crypto_operation/signature/inc", 27 "${plugin_path}/openssl_plugin/crypto_operation/cipher/inc", 28 "${plugin_path}/openssl_plugin/key/sym_key_generator/inc", 29 "${plugin_path}/openssl_plugin/key/asy_key_generator/inc", 30 "${plugin_path}/openssl_plugin/crypto_operation/hmac/inc", 31 "${plugin_path}/openssl_plugin/crypto_operation/md/inc", 32 "${plugin_path}/openssl_plugin/crypto_operation/rand/inc", 33 "${framework_path}/spi", 34] 35 36framework_cipher_files = [ "${framework_path}/crypto_operation/cipher.c" ] 37 38framework_signature_files = [ "${framework_path}/crypto_operation/signature.c" ] 39 40framework_key_agreement_files = 41 [ "${framework_path}/crypto_operation/key_agreement.c" ] 42 43framework_key_files = [ 44 "${framework_path}/key/asy_key_generator.c", 45 "${framework_path}/key/sym_key_generator.c", 46] 47 48framework_mac_files = [ "${framework_path}/crypto_operation/mac.c" ] 49 50framework_rand_files = [ "${framework_path}/crypto_operation/rand.c" ] 51 52framework_md_files = [ "${framework_path}/crypto_operation/md.c" ] 53 54framework_files = 55 framework_key_agreement_files + framework_signature_files + 56 framework_cipher_files + framework_key_files + framework_mac_files + 57 framework_rand_files + framework_md_files 58