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.
5 import("//build/config/crypto.gni")
6 import("//testing/test.gni")
8 source_set("webcrypto") {
10 "algorithm_dispatch.cc",
11 "algorithm_dispatch.h",
12 "algorithm_implementation.cc",
13 "algorithm_implementation.h",
14 "algorithm_implementations.h",
15 "algorithm_registry.cc",
16 "algorithm_registry.h",
19 "algorithms/aes_cbc.cc",
20 "algorithms/aes_ctr.cc",
21 "algorithms/aes_gcm.cc",
22 "algorithms/aes_kw.cc",
26 "algorithms/ecdsa.cc",
29 "algorithms/pbkdf2.cc",
32 "algorithms/rsa_oaep.cc",
33 "algorithms/rsa_pss.cc",
34 "algorithms/rsa_sign.cc",
35 "algorithms/rsa_sign.h",
36 "algorithms/rsa_ssa.cc",
37 "algorithms/secret_key_util.cc",
38 "algorithms/secret_key_util.h",
40 "algorithms/util_openssl.cc",
41 "algorithms/util_openssl.h",
44 "generate_key_result.cc",
45 "generate_key_result.h",
62 "//third_party/WebKit/public:blink",
66 source_set("unit_tests") {
69 "algorithms/aes_cbc_unittest.cc",
70 "algorithms/aes_ctr_unittest.cc",
71 "algorithms/aes_gcm_unittest.cc",
72 "algorithms/aes_kw_unittest.cc",
73 "algorithms/ecdh_unittest.cc",
74 "algorithms/ecdsa_unittest.cc",
75 "algorithms/hmac_unittest.cc",
76 "algorithms/rsa_oaep_unittest.cc",
77 "algorithms/rsa_pss_unittest.cc",
78 "algorithms/rsa_ssa_unittest.cc",
79 "algorithms/sha_unittest.cc",
80 "algorithms/test_helpers.cc",
81 "algorithms/test_helpers.h",
87 "//base/test:test_support",
88 "//components/test_runner:test_runner",
93 "//third_party/WebKit/public:blink",