#include "quiche/quic/core/crypto/null_decrypter.h"
#include <cstdint>
#include <limits>
#include <string>
#include "absl/numeric/int128.h"
#include "absl/strings/string_view.h"
#include "quiche/quic/core/quic_data_reader.h"
#include "quiche/quic/core/quic_utils.h"
#include "quiche/quic/platform/api/quic_bug_tracker.h"
#include "quiche/common/quiche_endian.h"
namespace quic {
NullDecrypter::NullDecrypter(Perspective perspective)
: … { … }
bool NullDecrypter::SetKey(absl::string_view key) { … }
bool NullDecrypter::SetNoncePrefix(absl::string_view nonce_prefix) { … }
bool NullDecrypter::SetIV(absl::string_view iv) { … }
bool NullDecrypter::SetHeaderProtectionKey(absl::string_view key) { … }
bool NullDecrypter::SetPreliminaryKey(absl::string_view ) { … }
bool NullDecrypter::SetDiversificationNonce(
const DiversificationNonce& ) { … }
bool NullDecrypter::DecryptPacket(uint64_t ,
absl::string_view associated_data,
absl::string_view ciphertext, char* output,
size_t* output_length,
size_t max_output_length) { … }
std::string NullDecrypter::GenerateHeaderProtectionMask(
QuicDataReader* ) { … }
size_t NullDecrypter::GetKeySize() const { … }
size_t NullDecrypter::GetNoncePrefixSize() const { … }
size_t NullDecrypter::GetIVSize() const { … }
absl::string_view NullDecrypter::GetKey() const { … }
absl::string_view NullDecrypter::GetNoncePrefix() const { … }
uint32_t NullDecrypter::cipher_id() const { … }
QuicPacketCount NullDecrypter::GetIntegrityLimit() const { … }
bool NullDecrypter::ReadHash(QuicDataReader* reader, absl::uint128* hash) { … }
absl::uint128 NullDecrypter::ComputeHash(const absl::string_view data1,
const absl::string_view data2) const { … }
}