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" 15 16plugin_path = "//base/security/crypto_framework/plugin" 17 18plugin_inc_path = [ 19 "${base_path}/interfaces/innerkits/common", 20 "${plugin_path}/openssl_plugin/common/inc", 21 "${plugin_path}/openssl_plugin/key/asy_key_generator/inc", 22 "${plugin_path}/openssl_plugin/key/sym_key_generator/inc", 23 "${plugin_path}/openssl_plugin/crypto_operation/cipher/inc", 24 "${plugin_path}/openssl_plugin/crypto_operation/hmac/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/md/inc", 28 "${plugin_path}/openssl_plugin/crypto_operation/rand/inc", 29 "//base/security/crypto_framework/frameworks/spi", 30 "//base/security/crypto_framework/common/inc", 31] 32 33plugin_signature_files = [ 34 "${plugin_path}/openssl_plugin/crypto_operation/signature/src/dsa_openssl.c", 35 "${plugin_path}/openssl_plugin/crypto_operation/signature/src/ecdsa_openssl.c", 36 "${plugin_path}/openssl_plugin/crypto_operation/signature/src/signature_rsa_openssl.c", 37 "${plugin_path}/openssl_plugin/crypto_operation/signature/src/sm2_openssl.c", 38] 39 40plugin_common_files = [ 41 "${plugin_path}/openssl_plugin/common/src/openssl_adapter.c", 42 "${plugin_path}/openssl_plugin/common/src/openssl_common.c", 43 "${plugin_path}/openssl_plugin/common/src/rsa_openssl_common.c", 44] 45 46plugin_asy_key_generator_files = [ 47 "${plugin_path}/openssl_plugin/key/asy_key_generator/src/dsa_asy_key_generator_openssl.c", 48 "${plugin_path}/openssl_plugin/key/asy_key_generator/src/ecc_asy_key_generator_openssl.c", 49 "${plugin_path}/openssl_plugin/key/asy_key_generator/src/rsa_asy_key_generator_openssl.c", 50 "${plugin_path}/openssl_plugin/key/asy_key_generator/src/sm2_asy_key_generator_openssl.c", 51] 52 53plugin_key_agreement_files = [ "${plugin_path}/openssl_plugin/crypto_operation/key_agreement/src/ecdh_openssl.c" ] 54 55plugin_sym_key_files = [ 56 "${plugin_path}/openssl_plugin/key/sym_key_generator/src/sym_key_openssl.c", 57] 58 59plugin_cipher_files = [ 60 "${plugin_path}/openssl_plugin/crypto_operation/cipher/src/cipher_rsa_openssl.c", 61 "${plugin_path}/openssl_plugin/crypto_operation/cipher/src/cipher_3des_openssl.c", 62 "${plugin_path}/openssl_plugin/crypto_operation/cipher/src/cipher_aes_openssl.c", 63 "${plugin_path}/openssl_plugin/crypto_operation/cipher/src/cipher_aes_common.c", 64 "${plugin_path}/openssl_plugin/crypto_operation/cipher/src/cipher_sm4_openssl.c", 65 "${plugin_path}/openssl_plugin/crypto_operation/cipher/src/cipher_sm2_openssl.c", 66] 67 68plugin_hmac_files = 69 [ "${plugin_path}/openssl_plugin/crypto_operation/hmac/src/mac_openssl.c" ] 70 71plugin_rand_files = 72 [ "${plugin_path}/openssl_plugin/crypto_operation/rand/src/rand_openssl.c" ] 73 74plugin_md_files = 75 [ "${plugin_path}/openssl_plugin/crypto_operation/md/src/md_openssl.c" ] 76 77plugin_files = plugin_asy_key_generator_files + plugin_key_agreement_files + 78 plugin_sym_key_files + plugin_cipher_files + plugin_hmac_files + 79 plugin_rand_files + plugin_md_files + plugin_signature_files + 80 plugin_common_files 81