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

Unified Diff: components/webcrypto/fuzzer_support.h

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 side-by-side diff with in-line comments
Download patch
Index: components/webcrypto/fuzzer_support.h
diff --git a/components/webcrypto/fuzzer_support.h b/components/webcrypto/fuzzer_support.h
new file mode 100644
index 0000000000000000000000000000000000000000..43cde789f38f5f4571328ab0adbb60d29305e94c
--- /dev/null
+++ b/components/webcrypto/fuzzer_support.h
@@ -0,0 +1,25 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_
+#define COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_
+
+#include <stddef.h>
+#include <stdint.h>
+
+#include "third_party/WebKit/public/platform/WebCryptoKey.h"
+
+namespace webcrypto {
+
+void ImportEcKeyFromDerFuzzData(const uint8_t* data,
+ size_t size,
+ blink::WebCryptoKeyFormat format);
+
+void ImportRsaKeyFromDerFuzzData(const uint8_t* data,
+ size_t size,
+ blink::WebCryptoKeyFormat format);
+
+} // namespace webcrypto
+
+#endif // COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_

Powered by Google App Engine
This is Rietveld 408576698