| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 component("crypto") { | 8 component("crypto") { |
| 9 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. | 9 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. |
| 10 sources = [ | 10 sources = [ |
| 11 "aead_openssl.cc", | 11 "aead.cc", |
| 12 "aead_openssl.h", | 12 "aead.h", |
| 13 "apple_keychain.h", | 13 "apple_keychain.h", |
| 14 "apple_keychain_ios.mm", | 14 "apple_keychain_ios.mm", |
| 15 "apple_keychain_mac.mm", | 15 "apple_keychain_mac.mm", |
| 16 "auto_cbb.h", | 16 "auto_cbb.h", |
| 17 "capi_util.cc", | 17 "capi_util.cc", |
| 18 "capi_util.h", | 18 "capi_util.h", |
| 19 "crypto_export.h", | 19 "crypto_export.h", |
| 20 "cssm_init.cc", | 20 "cssm_init.cc", |
| 21 "cssm_init.h", | 21 "cssm_init.h", |
| 22 "curve25519.cc", |
| 22 "curve25519.h", | 23 "curve25519.h", |
| 23 "curve25519_openssl.cc", | 24 "ec_private_key.cc", |
| 24 "ec_private_key.h", | 25 "ec_private_key.h", |
| 25 "ec_private_key_openssl.cc", | |
| 26 "ec_signature_creator.cc", | 26 "ec_signature_creator.cc", |
| 27 "ec_signature_creator.h", | 27 "ec_signature_creator.h", |
| 28 "ec_signature_creator_impl.h", | 28 "ec_signature_creator_impl.h", |
| 29 "ec_signature_creator_openssl.cc", | 29 "ec_signature_creator_openssl.cc", |
| 30 "encryptor.cc", | 30 "encryptor.cc", |
| 31 "encryptor.h", | 31 "encryptor.h", |
| 32 "encryptor_openssl.cc", | |
| 33 "hkdf.cc", | 32 "hkdf.cc", |
| 34 "hkdf.h", | 33 "hkdf.h", |
| 35 "hmac.cc", | 34 "hmac.cc", |
| 36 "hmac.h", | 35 "hmac.h", |
| 37 "hmac_openssl.cc", | 36 "hmac_openssl.cc", |
| 38 "mac_security_services_lock.cc", | 37 "mac_security_services_lock.cc", |
| 39 "mac_security_services_lock.h", | 38 "mac_security_services_lock.h", |
| 40 | 39 |
| 41 # TODO(brettw) these mocks should be moved to a test_support_crypto target | 40 # TODO(brettw) these mocks should be moved to a test_support_crypto target |
| 42 # if possible. | 41 # if possible. |
| 43 "mock_apple_keychain.cc", | 42 "mock_apple_keychain.cc", |
| 44 "mock_apple_keychain.h", | 43 "mock_apple_keychain.h", |
| 45 "mock_apple_keychain_ios.cc", | 44 "mock_apple_keychain_ios.cc", |
| 46 "mock_apple_keychain_mac.cc", | 45 "mock_apple_keychain_mac.cc", |
| 47 "nss_key_util.cc", | 46 "nss_key_util.cc", |
| 48 "nss_key_util.h", | 47 "nss_key_util.h", |
| 49 "nss_util.cc", | 48 "nss_util.cc", |
| 50 "nss_util.h", | 49 "nss_util.h", |
| 51 "nss_util_internal.h", | 50 "nss_util_internal.h", |
| 52 "openssl_bio_string.cc", | 51 "openssl_bio_string.cc", |
| 53 "openssl_bio_string.h", | 52 "openssl_bio_string.h", |
| 54 "openssl_util.cc", | 53 "openssl_util.cc", |
| 55 "openssl_util.h", | 54 "openssl_util.h", |
| 56 "p224.cc", | 55 "p224.cc", |
| 57 "p224.h", | 56 "p224.h", |
| 58 "p224_spake.cc", | 57 "p224_spake.cc", |
| 59 "p224_spake.h", | 58 "p224_spake.h", |
| 60 "random.cc", | 59 "random.cc", |
| 61 "random.h", | 60 "random.h", |
| 61 "rsa_private_key.cc", |
| 62 "rsa_private_key.h", | 62 "rsa_private_key.h", |
| 63 "rsa_private_key_openssl.cc", | |
| 64 "scoped_capi_types.h", | 63 "scoped_capi_types.h", |
| 65 "scoped_nss_types.h", | 64 "scoped_nss_types.h", |
| 65 "secure_hash.cc", |
| 66 "secure_hash.h", | 66 "secure_hash.h", |
| 67 "secure_hash_openssl.cc", | |
| 68 "secure_util.cc", | 67 "secure_util.cc", |
| 69 "secure_util.h", | 68 "secure_util.h", |
| 70 "sha2.cc", | 69 "sha2.cc", |
| 71 "sha2.h", | 70 "sha2.h", |
| 71 "signature_creator.cc", |
| 72 "signature_creator.h", | 72 "signature_creator.h", |
| 73 "signature_creator_openssl.cc", | 73 "signature_verifier.cc", |
| 74 "signature_verifier.h", | 74 "signature_verifier.h", |
| 75 "signature_verifier_openssl.cc", | |
| 76 "symmetric_key.h", | 75 "symmetric_key.h", |
| 77 "symmetric_key_openssl.cc", | 76 "symmetric_key_openssl.cc", |
| 78 "third_party/nss/chromium-sha256.h", | 77 "third_party/nss/chromium-sha256.h", |
| 79 "third_party/nss/sha512.cc", | 78 "third_party/nss/sha512.cc", |
| 80 ] | 79 ] |
| 81 | 80 |
| 82 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 83 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 82 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 84 | 83 |
| 85 deps = [ | 84 deps = [ |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 "//base", | 157 "//base", |
| 159 "//base/third_party/dynamic_annotations", | 158 "//base/third_party/dynamic_annotations", |
| 160 ] | 159 ] |
| 161 | 160 |
| 162 defines = [ "CRYPTO_IMPLEMENTATION" ] | 161 defines = [ "CRYPTO_IMPLEMENTATION" ] |
| 163 } | 162 } |
| 164 } | 163 } |
| 165 | 164 |
| 166 test("crypto_unittests") { | 165 test("crypto_unittests") { |
| 167 sources = [ | 166 sources = [ |
| 168 "aead_openssl_unittest.cc", | 167 "aead_unittest.cc", |
| 169 "curve25519_unittest.cc", | 168 "curve25519_unittest.cc", |
| 170 "ec_private_key_unittest.cc", | 169 "ec_private_key_unittest.cc", |
| 171 "ec_signature_creator_unittest.cc", | 170 "ec_signature_creator_unittest.cc", |
| 172 "encryptor_unittest.cc", | 171 "encryptor_unittest.cc", |
| 173 "hkdf_unittest.cc", | 172 "hkdf_unittest.cc", |
| 174 "hmac_unittest.cc", | 173 "hmac_unittest.cc", |
| 175 "nss_key_util_unittest.cc", | 174 "nss_key_util_unittest.cc", |
| 176 "nss_util_unittest.cc", | 175 "nss_util_unittest.cc", |
| 177 "openssl_bio_string_unittest.cc", | 176 "openssl_bio_string_unittest.cc", |
| 178 "p224_spake_unittest.cc", | 177 "p224_spake_unittest.cc", |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 "//third_party/boringssl", | 255 "//third_party/boringssl", |
| 257 ] | 256 ] |
| 258 | 257 |
| 259 # Link in NSS if it is used for the platform certificate library | 258 # Link in NSS if it is used for the platform certificate library |
| 260 # (use_nss_certs). | 259 # (use_nss_certs). |
| 261 if (use_nss_certs) { | 260 if (use_nss_certs) { |
| 262 public_configs = [ ":platform_config" ] | 261 public_configs = [ ":platform_config" ] |
| 263 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ] | 262 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ] |
| 264 } | 263 } |
| 265 } | 264 } |
| OLD | NEW |