chromium/components/web_package/signed_web_bundles/ed25519_signature.cc

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

#include "components/web_package/signed_web_bundles/ed25519_signature.h"

#include "base/ranges/algorithm.h"
#include "base/strings/stringprintf.h"
#include "third_party/boringssl/src/include/openssl/curve25519.h"

namespace web_package {

// We don't use `ED25519_SIGNATURE_LEN` in the header file, because we want to
// avoid including large BoringSSL headers in header files.
static_assert;

// static
base::expected<Ed25519Signature, std::string> Ed25519Signature::Create(
    base::span<const uint8_t> bytes) {}

bool Ed25519Signature::operator==(const Ed25519Signature& other) const {}

bool Ed25519Signature::operator!=(const Ed25519Signature& other) const {}

// static
Ed25519Signature Ed25519Signature::Create(
    base::span<const uint8_t, kLength> bytes) {}

Ed25519Signature::Ed25519Signature(std::array<uint8_t, kLength>& bytes)
    :{}

[[nodiscard]] bool Ed25519Signature::Verify(
    base::span<const uint8_t> message,
    const Ed25519PublicKey& public_key) const {}

}  // namespace web_package