Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

EncodePreSharedKeyCHList

function EncodePreSharedKeyCHList(const aIdentities: array of tBytes; const aObfAges: array of UInt32; aBinderLen: Integer; out aBindersPortionLen: Integer): tBytes;
Multi-identity form: N PskIdentity entries (identity[i] + obfuscated_ticket_age[i]) followed by N zero placeholder binders of aBinderLen each (all offered PSKs must share the hash, so the binders are equal length). Each binder is patched in over the SAME truncated ClientHello. aBindersPortionLen = 2 + N*(1 + aBinderLen).