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_registry.cc",
15 "algorithm_registry.h",
18 "generate_key_result.cc",
19 "generate_key_result.h",
35 "//third_party/WebKit/public:blink",
40 "nss/aes_algorithm_nss.cc",
41 "nss/aes_algorithm_nss.h",
48 "nss/rsa_hashed_algorithm_nss.cc",
49 "nss/rsa_hashed_algorithm_nss.h",
50 "nss/rsa_oaep_nss.cc",
60 "openssl/aes_algorithm_openssl.cc",
61 "openssl/aes_algorithm_openssl.h",
62 "openssl/aes_cbc_openssl.cc",
63 "openssl/aes_ctr_openssl.cc",
64 "openssl/aes_gcm_openssl.cc",
65 "openssl/aes_kw_openssl.cc",
66 "openssl/ec_algorithm_openssl.cc",
67 "openssl/ec_algorithm_openssl.h",
68 "openssl/ecdh_openssl.cc",
69 "openssl/ecdsa_openssl.cc",
70 "openssl/hkdf_openssl.cc",
71 "openssl/hmac_openssl.cc",
72 "openssl/key_openssl.cc",
73 "openssl/key_openssl.h",
74 "openssl/pbkdf2_openssl.cc",
75 "openssl/rsa_hashed_algorithm_openssl.cc",
76 "openssl/rsa_hashed_algorithm_openssl.h",
77 "openssl/rsa_oaep_openssl.cc",
78 "openssl/rsa_pss_openssl.cc",
79 "openssl/rsa_sign_openssl.cc",
80 "openssl/rsa_sign_openssl.h",
81 "openssl/rsa_ssa_openssl.cc",
82 "openssl/sha_openssl.cc",
83 "openssl/util_openssl.cc",
84 "openssl/util_openssl.h",
89 source_set("unit_tests") {
92 "test/aes_cbc_unittest.cc",
93 "test/aes_ctr_unittest.cc",
94 "test/aes_gcm_unittest.cc",
95 "test/aes_kw_unittest.cc",
96 "test/ecdh_unittest.cc",
97 "test/ecdsa_unittest.cc",
98 "test/hmac_unittest.cc",
99 "test/rsa_oaep_unittest.cc",
100 "test/rsa_pss_unittest.cc",
101 "test/rsa_ssa_unittest.cc",
102 "test/sha_unittest.cc",
103 "test/status_unittest.cc",
104 "test/test_helpers.cc",
105 "test/test_helpers.h",
110 "//base/test:test_support",
115 "//third_party/WebKit/public:blink",