OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 source_set("webcrypto") { | 8 source_set("webcrypto") { |
9 sources = [ | 9 sources = [ |
10 "algorithm_dispatch.cc", | 10 "algorithm_dispatch.cc", |
11 "algorithm_dispatch.h", | 11 "algorithm_dispatch.h", |
12 "algorithm_implementation.cc", | 12 "algorithm_implementation.cc", |
13 "algorithm_implementation.h", | 13 "algorithm_implementation.h", |
14 "algorithm_registry.cc", | 14 "algorithm_registry.cc", |
15 "algorithm_registry.h", | 15 "algorithm_registry.h", |
| 16 "algorithms/aes.cc", |
| 17 "algorithms/aes.h", |
| 18 "algorithms/aes_cbc.cc", |
| 19 "algorithms/aes_ctr.cc", |
| 20 "algorithms/aes_gcm.cc", |
| 21 "algorithms/aes_kw.cc", |
| 22 "algorithms/ec.cc", |
| 23 "algorithms/ec.h", |
| 24 "algorithms/ecdh.cc", |
| 25 "algorithms/ecdsa.cc", |
| 26 "algorithms/hkdf.cc", |
| 27 "algorithms/hmac.cc", |
| 28 "algorithms/key.cc", |
| 29 "algorithms/key.h", |
| 30 "algorithms/pbkdf2.cc", |
| 31 "algorithms/rsa.cc", |
| 32 "algorithms/rsa.h", |
| 33 "algorithms/rsa_oaep.cc", |
| 34 "algorithms/rsa_pss.cc", |
| 35 "algorithms/rsa_sign.cc", |
| 36 "algorithms/rsa_sign.h", |
| 37 "algorithms/rsa_ssa.cc", |
| 38 "algorithms/sha.cc", |
| 39 "algorithms/util_openssl.cc", |
| 40 "algorithms/util_openssl.h", |
16 "crypto_data.cc", | 41 "crypto_data.cc", |
17 "crypto_data.h", | 42 "crypto_data.h", |
18 "generate_key_result.cc", | 43 "generate_key_result.cc", |
19 "generate_key_result.h", | 44 "generate_key_result.h", |
20 "jwk.cc", | 45 "jwk.cc", |
21 "jwk.h", | 46 "jwk.h", |
22 "openssl/aes_algorithm_openssl.cc", | |
23 "openssl/aes_algorithm_openssl.h", | |
24 "openssl/aes_cbc_openssl.cc", | |
25 "openssl/aes_ctr_openssl.cc", | |
26 "openssl/aes_gcm_openssl.cc", | |
27 "openssl/aes_kw_openssl.cc", | |
28 "openssl/ec_algorithm_openssl.cc", | |
29 "openssl/ec_algorithm_openssl.h", | |
30 "openssl/ecdh_openssl.cc", | |
31 "openssl/ecdsa_openssl.cc", | |
32 "openssl/hkdf_openssl.cc", | |
33 "openssl/hmac_openssl.cc", | |
34 "openssl/key_openssl.cc", | |
35 "openssl/key_openssl.h", | |
36 "openssl/pbkdf2_openssl.cc", | |
37 "openssl/rsa_hashed_algorithm_openssl.cc", | |
38 "openssl/rsa_hashed_algorithm_openssl.h", | |
39 "openssl/rsa_oaep_openssl.cc", | |
40 "openssl/rsa_pss_openssl.cc", | |
41 "openssl/rsa_sign_openssl.cc", | |
42 "openssl/rsa_sign_openssl.h", | |
43 "openssl/rsa_ssa_openssl.cc", | |
44 "openssl/sha_openssl.cc", | |
45 "openssl/util_openssl.cc", | |
46 "openssl/util_openssl.h", | |
47 "platform_crypto.h", | 47 "platform_crypto.h", |
48 "status.cc", | 48 "status.cc", |
49 "status.h", | 49 "status.h", |
50 "webcrypto_impl.cc", | 50 "webcrypto_impl.cc", |
51 "webcrypto_impl.h", | 51 "webcrypto_impl.h", |
52 "webcrypto_util.cc", | 52 "webcrypto_util.cc", |
53 "webcrypto_util.h", | 53 "webcrypto_util.h", |
54 ] | 54 ] |
55 | 55 |
56 deps = [ | 56 deps = [ |
57 "//base", | 57 "//base", |
58 "//crypto", | 58 "//crypto", |
59 "//crypto:platform", | 59 "//crypto:platform", |
60 "//third_party/WebKit/public:blink", | 60 "//third_party/WebKit/public:blink", |
61 ] | 61 ] |
62 } | 62 } |
63 | 63 |
64 source_set("unit_tests") { | 64 source_set("unit_tests") { |
65 testonly = true | 65 testonly = true |
66 sources = [ | 66 sources = [ |
67 "test/aes_cbc_unittest.cc", | 67 "algorithms/aes_cbc_unittest.cc", |
68 "test/aes_ctr_unittest.cc", | 68 "algorithms/aes_ctr_unittest.cc", |
69 "test/aes_gcm_unittest.cc", | 69 "algorithms/aes_gcm_unittest.cc", |
70 "test/aes_kw_unittest.cc", | 70 "algorithms/aes_kw_unittest.cc", |
71 "test/ecdh_unittest.cc", | 71 "algorithms/ecdh_unittest.cc", |
72 "test/ecdsa_unittest.cc", | 72 "algorithms/ecdsa_unittest.cc", |
73 "test/hmac_unittest.cc", | 73 "algorithms/hmac_unittest.cc", |
74 "test/rsa_oaep_unittest.cc", | 74 "algorithms/rsa_oaep_unittest.cc", |
75 "test/rsa_pss_unittest.cc", | 75 "algorithms/rsa_pss_unittest.cc", |
76 "test/rsa_ssa_unittest.cc", | 76 "algorithms/rsa_ssa_unittest.cc", |
77 "test/sha_unittest.cc", | 77 "algorithms/sha_unittest.cc", |
78 "test/status_unittest.cc", | 78 "algorithms/test_helpers.cc", |
79 "test/test_helpers.cc", | 79 "algorithms/test_helpers.h", |
80 "test/test_helpers.h", | 80 "status_unittest.cc", |
81 ] | 81 ] |
82 | 82 |
83 deps = [ | 83 deps = [ |
84 ":webcrypto", | 84 ":webcrypto", |
85 "//base/test:test_support", | 85 "//base/test:test_support", |
86 "//components/test_runner:test_runner", | 86 "//components/test_runner:test_runner", |
87 "//crypto", | 87 "//crypto", |
88 "//crypto:platform", | 88 "//crypto:platform", |
89 "//testing/perf", | 89 "//testing/perf", |
90 "//testing/gtest", | 90 "//testing/gtest", |
91 "//third_party/WebKit/public:blink", | 91 "//third_party/WebKit/public:blink", |
92 "//third_party/re2", | 92 "//third_party/re2", |
93 ] | 93 ] |
94 } | 94 } |
OLD | NEW |