Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

MakeQuicStatelessReset

function MakeQuicStatelessReset(aTriggerLength: Integer; const aUnpredictablePrefix, aResetToken: TBytes; out aDatagram: TBytes): Boolean;
The caller supplies unpredictable prefix bytes and a securely generated 16-byte token. The result is at least 21 bytes and strictly smaller than the triggering datagram. A prefix below five bytes, token of another length or trigger below 22 bytes returns False and an explicitly empty result. Active connections send CONNECTION_CLOSE instead. The caller additionally applies routing, rate limits and the rule against responding to a known reset.