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

Side by Side Diff: components/webcrypto/fuzzer_support.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_ 5 #ifndef COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_
6 #define COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_ 6 #define COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "third_party/WebKit/public/platform/WebCryptoKey.h" 11 #include "third_party/WebKit/public/platform/WebCryptoKey.h"
12 12
13 namespace webcrypto { 13 namespace webcrypto {
14 14
15 void ImportEcKeyFromDerFuzzData(const uint8_t* data, 15 void ImportEcKeyFromDerFuzzData(const uint8_t* data,
16 size_t size, 16 size_t size,
17 blink::WebCryptoKeyFormat format); 17 blink::WebCryptoKeyFormat format);
18 18
19 void ImportEcKeyFromRawFuzzData(const uint8_t* data, size_t size);
20
19 void ImportRsaKeyFromDerFuzzData(const uint8_t* data, 21 void ImportRsaKeyFromDerFuzzData(const uint8_t* data,
20 size_t size, 22 size_t size,
21 blink::WebCryptoKeyFormat format); 23 blink::WebCryptoKeyFormat format);
22 24
23 } // namespace webcrypto 25 } // namespace webcrypto
24 26
25 #endif // COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_ 27 #endif // COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_
OLDNEW
« no previous file with comments | « components/webcrypto/ec_import_key_raw_fuzzer.cc ('k') | components/webcrypto/fuzzer_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698