#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 {
static_assert …;
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 { … }
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 { … }
}