fuzzer_support.h 868 B

123456789101112131415161718192021222324252627
  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
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_
  5. #define COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_
  6. #include <stddef.h>
  7. #include <stdint.h>
  8. #include "third_party/blink/public/platform/web_crypto_key.h"
  9. namespace webcrypto {
  10. void ImportEcKeyFromDerFuzzData(const uint8_t* data,
  11. size_t size,
  12. blink::WebCryptoKeyFormat format);
  13. void ImportEcKeyFromRawFuzzData(const uint8_t* data, size_t size);
  14. void ImportRsaKeyFromDerFuzzData(const uint8_t* data,
  15. size_t size,
  16. blink::WebCryptoKeyFormat format);
  17. } // namespace webcrypto
  18. #endif // COMPONENTS_WEBCRYPTO_FUZZER_SUPPORT_H_