| OLD | NEW |
| 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_ |
| OLD | NEW |