OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/config/crypto.gni") |
| 6 import("//testing/test.gni") |
| 7 |
| 8 source_set("webcrypto") { |
| 9 sources = [ |
| 10 "algorithm_dispatch.cc", |
| 11 "algorithm_dispatch.h", |
| 12 "algorithm_implementation.cc", |
| 13 "algorithm_implementation.h", |
| 14 "algorithm_registry.cc", |
| 15 "algorithm_registry.h", |
| 16 "crypto_data.cc", |
| 17 "crypto_data.h", |
| 18 "generate_key_result.cc", |
| 19 "generate_key_result.h", |
| 20 "jwk.cc", |
| 21 "jwk.h", |
| 22 "platform_crypto.h", |
| 23 "status.cc", |
| 24 "status.h", |
| 25 "webcrypto_impl.cc", |
| 26 "webcrypto_impl.h", |
| 27 "webcrypto_util.cc", |
| 28 "webcrypto_util.h", |
| 29 ] |
| 30 |
| 31 deps = [ |
| 32 "//crypto:platform", |
| 33 ] |
| 34 |
| 35 if (!use_openssl) { |
| 36 sources += [ |
| 37 "nss/aes_algorithm_nss.cc", |
| 38 "nss/aes_algorithm_nss.h", |
| 39 "nss/aes_cbc_nss.cc", |
| 40 "nss/aes_gcm_nss.cc", |
| 41 "nss/aes_kw_nss.cc", |
| 42 "nss/hmac_nss.cc", |
| 43 "nss/key_nss.cc", |
| 44 "nss/key_nss.h", |
| 45 "nss/rsa_hashed_algorithm_nss.cc", |
| 46 "nss/rsa_hashed_algorithm_nss.h", |
| 47 "nss/rsa_oaep_nss.cc", |
| 48 "nss/rsa_ssa_nss.cc", |
| 49 "nss/sha_nss.cc", |
| 50 "nss/sym_key_nss.cc", |
| 51 "nss/sym_key_nss.h", |
| 52 "nss/util_nss.cc", |
| 53 "nss/util_nss.h", |
| 54 ] |
| 55 } else { |
| 56 sources += [ |
| 57 "openssl/aes_algorithm_openssl.cc", |
| 58 "openssl/aes_algorithm_openssl.h", |
| 59 "openssl/aes_cbc_openssl.cc", |
| 60 "openssl/aes_ctr_openssl.cc", |
| 61 "openssl/aes_gcm_openssl.cc", |
| 62 "openssl/aes_kw_openssl.cc", |
| 63 "openssl/ec_algorithm_openssl.cc", |
| 64 "openssl/ec_algorithm_openssl.h", |
| 65 "openssl/ecdh_openssl.cc", |
| 66 "openssl/ecdsa_openssl.cc", |
| 67 "openssl/hkdf_openssl.cc", |
| 68 "openssl/hmac_openssl.cc", |
| 69 "openssl/key_openssl.cc", |
| 70 "openssl/key_openssl.h", |
| 71 "openssl/pbkdf2_openssl.cc", |
| 72 "openssl/rsa_hashed_algorithm_openssl.cc", |
| 73 "openssl/rsa_hashed_algorithm_openssl.h", |
| 74 "openssl/rsa_oaep_openssl.cc", |
| 75 "openssl/rsa_pss_openssl.cc", |
| 76 "openssl/rsa_sign_openssl.cc", |
| 77 "openssl/rsa_sign_openssl.h", |
| 78 "openssl/rsa_ssa_openssl.cc", |
| 79 "openssl/sha_openssl.cc", |
| 80 "openssl/util_openssl.cc", |
| 81 "openssl/util_openssl.h", |
| 82 ] |
| 83 } |
| 84 } |
| 85 |
| 86 source_set("unit_tests") { |
| 87 testonly = true |
| 88 sources = [ |
| 89 "test/aes_cbc_unittest.cc", |
| 90 "test/aes_ctr_unittest.cc", |
| 91 "test/aes_gcm_unittest.cc", |
| 92 "test/aes_kw_unittest.cc", |
| 93 "test/ecdh_unittest.cc", |
| 94 "test/ecdsa_unittest.cc", |
| 95 "test/hmac_unittest.cc", |
| 96 "test/rsa_oaep_unittest.cc", |
| 97 "test/rsa_pss_unittest.cc", |
| 98 "test/rsa_ssa_unittest.cc", |
| 99 "test/sha_unittest.cc", |
| 100 "test/status_unittest.cc", |
| 101 "test/test_helpers.cc", |
| 102 "test/test_helpers.h", |
| 103 ] |
| 104 |
| 105 deps = [ |
| 106 ":webcrypto", |
| 107 "//base/test:test_support", |
| 108 "//crypto", |
| 109 "//crypto:platform", |
| 110 "//testing/perf", |
| 111 "//testing/gtest", |
| 112 "//third_party/WebKit/public:blink", |
| 113 "//third_party/re2", |
| 114 ] |
| 115 } |
OLD | NEW |