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

Unified Diff: components/webcrypto/ec_import_key_raw_fuzzer.cc

Issue 2162303002: [webcrypto] Add support for import/export of "raw" formatted EC keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usage_order
Patch Set: address feedback Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/webcrypto/algorithms/ec.cc ('k') | components/webcrypto/fuzzer_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/ec_import_key_raw_fuzzer.cc
diff --git a/components/webcrypto/ec_import_key_spki_fuzzer.cc b/components/webcrypto/ec_import_key_raw_fuzzer.cc
similarity index 75%
copy from components/webcrypto/ec_import_key_spki_fuzzer.cc
copy to components/webcrypto/ec_import_key_raw_fuzzer.cc
index 7f16cfcacf91aa5b2922a29de23aebb45c5c6aeb..eeb1a555edc83ad33bbe3f783fc3843b033d448e 100644
--- a/components/webcrypto/ec_import_key_spki_fuzzer.cc
+++ b/components/webcrypto/ec_import_key_raw_fuzzer.cc
@@ -9,7 +9,7 @@
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
- webcrypto::ImportEcKeyFromDerFuzzData(data, size,
- blink::WebCryptoKeyFormatSpki);
+ webcrypto::ImportEcKeyFromRawFuzzData(data, size);
+
return 0;
}
« no previous file with comments | « components/webcrypto/algorithms/ec.cc ('k') | components/webcrypto/fuzzer_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698