#include "quiche/quic/core/crypto/null_encrypter.h"
#include <algorithm>
#include <limits>
#include <string>
#include "absl/numeric/int128.h"
#include "absl/strings/string_view.h"
#include "quiche/quic/core/quic_data_writer.h"
#include "quiche/quic/core/quic_utils.h"
namespace quic {
const size_t kHashSizeShort = …;
NullEncrypter::NullEncrypter(Perspective perspective)
: … { … }
bool NullEncrypter::SetKey(absl::string_view key) { … }
bool NullEncrypter::SetNoncePrefix(absl::string_view nonce_prefix) { … }
bool NullEncrypter::SetIV(absl::string_view iv) { … }
bool NullEncrypter::SetHeaderProtectionKey(absl::string_view key) { … }
bool NullEncrypter::EncryptPacket(uint64_t ,
absl::string_view associated_data,
absl::string_view plaintext, char* output,
size_t* output_length,
size_t max_output_length) { … }
std::string NullEncrypter::GenerateHeaderProtectionMask(
absl::string_view ) { … }
size_t NullEncrypter::GetKeySize() const { … }
size_t NullEncrypter::GetNoncePrefixSize() const { … }
size_t NullEncrypter::GetIVSize() const { … }
size_t NullEncrypter::GetMaxPlaintextSize(size_t ciphertext_size) const { … }
size_t NullEncrypter::GetCiphertextSize(size_t plaintext_size) const { … }
QuicPacketCount NullEncrypter::GetConfidentialityLimit() const { … }
absl::string_view NullEncrypter::GetKey() const { … }
absl::string_view NullEncrypter::GetNoncePrefix() const { … }
size_t NullEncrypter::GetHashLength() const { … }
}