Feature notes: Asynchronous QUIC server and HTTP/3 component
One instance holds one direction's packet and header protection keys. Its cipher state is mutable: calls require external serialization. Key schedules and IV are owned independently of constructor inputs. The transport enforces packet-number uniqueness, key updates and the connection-wide integrity budget. This class enforces the hard AES encryption bound and 65535-byte packet cap, but has no packet space.
constructor Create(aCipher: tQuicPacketCipher; const aKey, aIV, aHeaderKey: TBytes);
destructor Destroy; override;
function Seal(const aHeader, aPayload: TBytes; aPacketNumber: UInt64; aPacketNumberOffset: Integer): TBytes;
function HeaderInfo(const aPacket: TBytes; aPacketNumberOffset: Integer; aExpectedPacketNumber: UInt64; out aFirstByte: Byte; out aPacketNumber: UInt64): Boolean;
property EncryptionCount: UInt64 read fEncryptionCount;
property LastAuthenticationAttempted: Boolean read fLastAuthenticationAttempted;
function Open(const aPacket: TBytes; aPacketNumberOffset: Integer; aExpectedPacketNumber: UInt64; out aHeader, aPayload: TBytes; out aPacketNumber: UInt64): Boolean;