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