| 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("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//testing/libfuzzer/fuzzer_test.gni") | 6 import("//testing/libfuzzer/fuzzer_test.gni") |
| 7 | 7 |
| 8 static_library("webcrypto") { | 8 static_library("webcrypto") { |
| 9 sources = [ | 9 sources = [ |
| 10 "algorithm_dispatch.cc", | 10 "algorithm_dispatch.cc", |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 sources = [ | 135 sources = [ |
| 136 "ec_import_key_spki_fuzzer.cc", | 136 "ec_import_key_spki_fuzzer.cc", |
| 137 ] | 137 ] |
| 138 deps = [ | 138 deps = [ |
| 139 ":fuzzer_support", | 139 ":fuzzer_support", |
| 140 ":webcrypto", | 140 ":webcrypto", |
| 141 "//third_party/WebKit/public:blink_headers", | 141 "//third_party/WebKit/public:blink_headers", |
| 142 ] | 142 ] |
| 143 } | 143 } |
| 144 | 144 |
| 145 # Tests the import of raw (X9.62) formatted EC keys. |
| 146 fuzzer_test("webcrypto_ec_import_key_raw_fuzzer") { |
| 147 sources = [ |
| 148 "ec_import_key_raw_fuzzer.cc", |
| 149 ] |
| 150 deps = [ |
| 151 ":fuzzer_support", |
| 152 ":webcrypto", |
| 153 "//third_party/WebKit/public:blink_headers", |
| 154 ] |
| 155 } |
| 156 |
| 145 # Tests the import of PKCS8 formatted RSA keys. | 157 # Tests the import of PKCS8 formatted RSA keys. |
| 146 fuzzer_test("webcrypto_rsa_import_key_pkcs8_fuzzer") { | 158 fuzzer_test("webcrypto_rsa_import_key_pkcs8_fuzzer") { |
| 147 sources = [ | 159 sources = [ |
| 148 "rsa_import_key_pkcs8_fuzzer.cc", | 160 "rsa_import_key_pkcs8_fuzzer.cc", |
| 149 ] | 161 ] |
| 150 deps = [ | 162 deps = [ |
| 151 ":fuzzer_support", | 163 ":fuzzer_support", |
| 152 ":webcrypto", | 164 ":webcrypto", |
| 153 "//third_party/WebKit/public:blink_headers", | 165 "//third_party/WebKit/public:blink_headers", |
| 154 ] | 166 ] |
| 155 } | 167 } |
| 156 | 168 |
| 157 # Tests the import of SPKI formatted RSA keys. | 169 # Tests the import of SPKI formatted RSA keys. |
| 158 fuzzer_test("webcrypto_rsa_import_key_spki_fuzzer") { | 170 fuzzer_test("webcrypto_rsa_import_key_spki_fuzzer") { |
| 159 sources = [ | 171 sources = [ |
| 160 "rsa_import_key_pkcs8_fuzzer.cc", | 172 "rsa_import_key_pkcs8_fuzzer.cc", |
| 161 ] | 173 ] |
| 162 deps = [ | 174 deps = [ |
| 163 ":fuzzer_support", | 175 ":fuzzer_support", |
| 164 ":webcrypto", | 176 ":webcrypto", |
| 165 "//third_party/WebKit/public:blink_headers", | 177 "//third_party/WebKit/public:blink_headers", |
| 166 ] | 178 ] |
| 167 } | 179 } |
| OLD | NEW |