• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 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
14import("//build/ohos.gni")
15import("//build/ohos/ndk/ndk.gni")
16
17ohos_ndk_headers("crypto_capi_header") {
18  dest_dir = "$ndk_headers_out_dir/CryptoArchitectureKit"
19  sources = [
20    "./crypto_architecture_kit.h",
21    "./crypto_asym_cipher.h",
22    "./crypto_asym_key.h",
23    "./crypto_common.h",
24    "./crypto_digest.h",
25    "./crypto_kdf.h",
26    "./crypto_key_agreement.h",
27    "./crypto_mac.h",
28    "./crypto_rand.h",
29    "./crypto_signature.h",
30    "./crypto_sym_cipher.h",
31    "./crypto_sym_key.h",
32  ]
33}
34
35ohos_ndk_library("libohcrypto") {
36  output_name = "ohcrypto"
37  output_extension = "so"
38  ndk_description_file = "./libcrypto.ndk.json"
39  system_capability = "SystemCapability.Security.CryptoFramework"
40  system_capability_headers = [
41    "CryptoArchitectureKit/crypto_architecture_kit.h",
42    "CryptoArchitectureKit/crypto_asym_cipher.h",
43    "CryptoArchitectureKit/crypto_asym_key.h",
44    "CryptoArchitectureKit/crypto_common.h",
45    "CryptoArchitectureKit/crypto_digest.h",
46    "CryptoArchitectureKit/crypto_kdf.h",
47    "CryptoArchitectureKit/crypto_key_agreement.h",
48    "CryptoArchitectureKit/crypto_mac.h",
49    "CryptoArchitectureKit/crypto_rand.h",
50    "CryptoArchitectureKit/crypto_signature.h",
51    "CryptoArchitectureKit/crypto_sym_cipher.h",
52    "CryptoArchitectureKit/crypto_sym_key.h",
53  ]
54}
55