chromium/services/network/test/oblivious_http_request_test_helper.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 "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 {

// These keys were randomly generated as follows:
// EVP_HPKE_KEY keys;
// EVP_HPKE_KEY_generate(&keys, EVP_hpke_x25519_hkdf_sha256());
// and then EVP_HPKE_KEY_public_key and EVP_HPKE_KEY_private_key were used to
// extract the keys.
const uint8_t kTestPrivateKey[] =;

const uint8_t kTestPublicKey[] =;

}  // namespace

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

}  // namespace test
}  // namespace network