Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

ParseClientPreSharedKey

function ParseClientPreSharedKey(const aExts: tBytes; out aOffers: TTls13PskOfferArray; out aBindersPortionLen: Integer): Boolean;
Parse the client's pre_shared_key (RFC 8446 sec.4.2.11): returns ALL offered PskIdentity entries, each paired positionally with its PskBinderEntry, plus the total length of the trailing binders vector (= the bytes to exclude from the binder transcript; the truncated ClientHello is everything before it, and is the SAME for every identity). False if no well-formed pre_shared_key is present (incl. an identities/binders count mismatch, which RFC 8446 forbids).