chromium/net/quic/mock_encrypter.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/quic/mock_encrypter.h"

#include "net/third_party/quiche/src/quiche/quic/core/quic_data_writer.h"
#include "net/third_party/quiche/src/quiche/quic/core/quic_utils.h"

DiversificationNonce;
Perspective;
QuicPacketNumber;

namespace net {

namespace {

const size_t kPaddingSize =;

}  // namespace

MockEncrypter::MockEncrypter(Perspective perspective) {}

bool MockEncrypter::SetKey(std::string_view key) {}

bool MockEncrypter::SetNoncePrefix(std::string_view nonce_prefix) {}

bool MockEncrypter::SetIV(std::string_view iv) {}

bool MockEncrypter::EncryptPacket(uint64_t /*packet_number*/,
                                  std::string_view associated_data,
                                  std::string_view plaintext,
                                  char* output,
                                  size_t* output_length,
                                  size_t max_output_length) {}

bool MockEncrypter::SetHeaderProtectionKey(std::string_view key) {}

std::string MockEncrypter::GenerateHeaderProtectionMask(
    std::string_view sample) {}

size_t MockEncrypter::GetKeySize() const {}

size_t MockEncrypter::GetNoncePrefixSize() const {}

size_t MockEncrypter::GetIVSize() const {}

size_t MockEncrypter::GetMaxPlaintextSize(size_t ciphertext_size) const {}

size_t MockEncrypter::GetCiphertextSize(size_t plaintext_size) const {}

quic::QuicPacketCount MockEncrypter::GetConfidentialityLimit() const {}

std::string_view MockEncrypter::GetKey() const {}

std::string_view MockEncrypter::GetNoncePrefix() const {}

}  // namespace net