chromium/components/web_package/signed_web_bundles/ecdsa_p256_utils.cc

// 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.

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

#include "crypto/sha2.h"
#include "third_party/boringssl/src/include/openssl/ec_key.h"
#include "third_party/boringssl/src/include/openssl/ecdsa.h"

namespace web_package::internal {

namespace {

bssl::UniquePtr<EC_KEY> EcdsaP256PublicKeyFromBytes(
    base::span<const uint8_t, EcdsaP256PublicKey::kLength> bytes) {}

}  // namespace

bool IsValidEcdsaP256PublicKey(
    base::span<const uint8_t, EcdsaP256PublicKey::kLength> public_key) {}

bool VerifyMessageSignedWithEcdsaP256SHA256(
    base::span<const uint8_t> message,
    base::span<const uint8_t> signature,
    const EcdsaP256PublicKey& public_key) {}

}  // namespace web_package::internal