#include "chrome/browser/web_applications/isolated_web_apps/iwa_identity_validator.h"
#include "base/base64.h"
#include "base/containers/map_util.h"
#include "base/no_destructor.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/web_applications/isolated_web_apps/key_distribution/iwa_key_distribution_info_provider.h"
#include "components/web_package/signed_web_bundles/ecdsa_p256_public_key.h"
#include "components/web_package/signed_web_bundles/ed25519_public_key.h"
namespace web_app {
namespace {
base::expected<void, std::string>
ValidateWebBundleIdentityAgainstKeyRotationInfo(
const std::string& web_bundle_id,
const std::vector<web_package::PublicKey>& public_keys,
const IwaKeyDistributionInfoProvider::KeyRotationInfo& kr_info) { … }
}
void IwaIdentityValidator::CreateSingleton() { … }
base::expected<void, std::string>
IwaIdentityValidator::ValidateWebBundleIdentity(
const std::string& web_bundle_id,
const std::vector<web_package::PublicKey>& public_keys) const { … }
}