#include "components/web_package/signed_web_bundles/ed25519_public_key.h"
#include "base/ranges/algorithm.h"
#include "base/strings/stringprintf.h"
#include "base/types/expected.h"
#include "third_party/boringssl/src/include/openssl/curve25519.h"
namespace web_package {
static_assert …;
Ed25519PublicKey::Ed25519PublicKey(const Ed25519PublicKey&) = default;
Ed25519PublicKey& Ed25519PublicKey::operator=(const Ed25519PublicKey&) =
default;
Ed25519PublicKey::Ed25519PublicKey(Ed25519PublicKey&&) noexcept = default;
Ed25519PublicKey& Ed25519PublicKey::operator=(Ed25519PublicKey&&) noexcept =
default;
Ed25519PublicKey::~Ed25519PublicKey() = default;
bool Ed25519PublicKey::operator==(const Ed25519PublicKey& other) const { … }
bool Ed25519PublicKey::operator!=(const Ed25519PublicKey& other) const { … }
base::expected<Ed25519PublicKey, std::string> Ed25519PublicKey::Create(
base::span<const uint8_t> key) { … }
Ed25519PublicKey Ed25519PublicKey::Create(
base::span<const uint8_t, kLength> key) { … }
Ed25519PublicKey::Ed25519PublicKey(std::array<uint8_t, kLength> bytes)
: … { … }
}