#include "services/network/trust_tokens/boringssl_trust_token_redemption_cryptographer.h"
#include <optional>
#include <string>
#include "base/base64.h"
#include "base/containers/span.h"
#include "base/time/time.h"
#include "services/network/trust_tokens/boringssl_trust_token_state.h"
#include "services/network/trust_tokens/scoped_boringssl_bytes.h"
#include "services/network/trust_tokens/trust_token_client_data_canonicalization.h"
#include "third_party/boringssl/src/include/openssl/base.h"
#include "third_party/boringssl/src/include/openssl/trust_token.h"
namespace network {
BoringsslTrustTokenRedemptionCryptographer::
BoringsslTrustTokenRedemptionCryptographer() = default;
BoringsslTrustTokenRedemptionCryptographer::
~BoringsslTrustTokenRedemptionCryptographer() = default;
bool BoringsslTrustTokenRedemptionCryptographer::Initialize(
mojom::TrustTokenProtocolVersion issuer_configured_version,
int issuer_configured_batch_size) { … }
std::optional<std::string>
BoringsslTrustTokenRedemptionCryptographer::BeginRedemption(
TrustToken token,
const url::Origin& top_level_origin) { … }
std::optional<std::string>
BoringsslTrustTokenRedemptionCryptographer::ConfirmRedemption(
std::string_view response_header) { … }
}