Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: components/webcrypto/BUILD.gn

Issue 1743763003: Add fuzzers for import of WebCrypto DER-encoded keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/webcrypto/ec_import_key_pkcs8_fuzzer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//testing/test.gni") 5 import("//testing/test.gni")
6 import("//testing/libfuzzer/fuzzer_test.gni")
6 7
7 source_set("webcrypto") { 8 source_set("webcrypto") {
8 sources = [ 9 sources = [
9 "algorithm_dispatch.cc", 10 "algorithm_dispatch.cc",
10 "algorithm_dispatch.h", 11 "algorithm_dispatch.h",
11 "algorithm_implementation.cc", 12 "algorithm_implementation.cc",
12 "algorithm_implementation.h", 13 "algorithm_implementation.h",
13 "algorithm_implementations.h", 14 "algorithm_implementations.h",
14 "algorithm_registry.cc", 15 "algorithm_registry.cc",
15 "algorithm_registry.h", 16 "algorithm_registry.h",
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 "//base/test:test_support", 87 "//base/test:test_support",
87 "//components/test_runner:test_runner", 88 "//components/test_runner:test_runner",
88 "//crypto", 89 "//crypto",
89 "//crypto:platform", 90 "//crypto:platform",
90 "//testing/gtest", 91 "//testing/gtest",
91 "//testing/perf", 92 "//testing/perf",
92 "//third_party/WebKit/public:blink", 93 "//third_party/WebKit/public:blink",
93 "//third_party/re2", 94 "//third_party/re2",
94 ] 95 ]
95 } 96 }
97
98 # Shared functionality for writing WebCrypto fuzzers at this layer (several
99 # things need to be done to initialize Blink and pull in the right
100 # dependencies).
101 source_set("fuzzer_support") {
102 testonly = true
103
104 sources = [
105 "fuzzer_support.cc",
106 "fuzzer_support.h",
107 ]
108 deps = [
109 ":webcrypto",
110 "//crypto",
111 "//crypto:platform",
112
113 # The "blink_for_unittests" includes a dependency on Mojo, which otherwise
114 # public:blink lacks and would result in a linker error.
115 "//third_party/WebKit/public:blink_for_unittests",
116
117 # This contains a helper function for initializing Blink (needed for
118 # PartitionAlloc initialization).
119 "//components/test_runner:test_runner",
120 ]
121 }
122
123 # Tests the import of PKCS8 formatted EC keys.
124 fuzzer_test("ec_import_key_pkcs8_fuzzer") {
125 sources = [
126 "ec_import_key_pkcs8_fuzzer.cc",
127 ]
128 deps = [
129 ":fuzzer_support",
130 ":webcrypto",
131 "//third_party/WebKit/public:blink_headers",
132 ]
133 }
134
135 # Tests the import of SPKI formatted EC keys.
136 fuzzer_test("ec_import_key_spki_fuzzer") {
137 sources = [
138 "ec_import_key_spki_fuzzer.cc",
139 ]
140 deps = [
141 ":fuzzer_support",
142 ":webcrypto",
143 "//third_party/WebKit/public:blink_headers",
144 ]
145 }
146
147 # Tests the import of PKCS8 formatted RSA keys.
148 fuzzer_test("rsa_import_key_pkcs8_fuzzer") {
149 sources = [
150 "rsa_import_key_pkcs8_fuzzer.cc",
151 ]
152 deps = [
153 ":fuzzer_support",
154 ":webcrypto",
155 "//third_party/WebKit/public:blink_headers",
156 ]
157 }
158
159 # Tests the import of SPKI formatted RSA keys.
160 fuzzer_test("rsa_import_key_spki_fuzzer") {
161 sources = [
162 "rsa_import_key_pkcs8_fuzzer.cc",
Nico 2017/03/26 03:14:39 You copied rsa_import_key_pkcs8_fuzzer here and fo
eroman 2017/03/30 17:02:56 Ugh, I am terrible :( Thanks for pointing this ou
163 ]
164 deps = [
165 ":fuzzer_support",
166 ":webcrypto",
167 "//third_party/WebKit/public:blink_headers",
168 ]
169 }
OLDNEW
« no previous file with comments | « no previous file | components/webcrypto/ec_import_key_pkcs8_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698