blob: 8ea3787a911a3bb6fd063c5d03b16863b4acc842 [file] [log] [blame]
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef QUICHE_QUIC_CORE_CRYPTO_AES_BASE_ENCRYPTER_H_
#define QUICHE_QUIC_CORE_CRYPTO_AES_BASE_ENCRYPTER_H_
#include <cstddef>
#include "absl/strings/string_view.h"
#include "third_party/boringssl/src/include/openssl/aes.h"
#include "quic/core/crypto/aead_base_encrypter.h"
#include "quic/platform/api/quic_export.h"
namespace quic {
class QUIC_EXPORT_PRIVATE AesBaseEncrypter : public AeadBaseEncrypter {
public:
using AeadBaseEncrypter::AeadBaseEncrypter;
bool SetHeaderProtectionKey(absl::string_view key) override;
std::string GenerateHeaderProtectionMask(absl::string_view sample) override;
QuicPacketCount GetConfidentialityLimit() const override;
private:
// The key used for packet number encryption.
AES_KEY pne_key_;
};
} // namespace quic
#endif // QUICHE_QUIC_CORE_CRYPTO_AES_BASE_ENCRYPTER_H_