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