chromium/components/web_package/test_support/signed_web_bundles/ed25519_key_pair.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_WEB_PACKAGE_TEST_SUPPORT_SIGNED_WEB_BUNDLES_ED25519_KEY_PAIR_H_
#define COMPONENTS_WEB_PACKAGE_TEST_SUPPORT_SIGNED_WEB_BUNDLES_ED25519_KEY_PAIR_H_

#include <cstdint>
#include <vector>

#include "base/containers/span.h"
#include "components/web_package/signed_web_bundles/ed25519_public_key.h"

namespace web_package::test {

struct Ed25519KeyPair {};
std::vector<uint8_t> SignMessage(base::span<const uint8_t> message,
                                 const Ed25519KeyPair& key_pair);

}  // namespace web_package::test

#endif  // COMPONENTS_WEB_PACKAGE_TEST_SUPPORT_SIGNED_WEB_BUNDLES_ED25519_KEY_PAIR_H_