#include "services/network/test/oblivious_http_request_test_helper.h"
#include <string_view>
#include "third_party/boringssl/src/include/openssl/hpke.h"
namespace network {
namespace test {
namespace {
const uint8_t kTestPrivateKey[] = …;
const uint8_t kTestPublicKey[] = …;
}
ObliviousHttpRequestTestHelper::ObliviousHttpRequestTestHelper()
: … { … }
ObliviousHttpRequestTestHelper::~ObliviousHttpRequestTestHelper() = default;
std::string ObliviousHttpRequestTestHelper::GetPublicKeyConfigs() { … }
std::pair<std::string, quiche::ObliviousHttpRequest::Context>
ObliviousHttpRequestTestHelper::DecryptRequest(
std::string_view ciphertext_request) { … }
std::string ObliviousHttpRequestTestHelper::EncryptResponse(
std::string plaintext_response,
quiche::ObliviousHttpRequest::Context& context) { … }
}
}