methodTsnipCustomTLSClient.LoginKAPA
function LoginKAPA(const aSecret: tBytes; out aSessionKey: tBytes): Boolean;
The full-control variant of the login Start performs: supply the optional client-side pepper (it must equal the one used at registration; nil when none was used) and receive the negotiated session key.
This is the path that consumes the TLS channel binding: the client's response is a MAC keyed through the RFC 9266 tls-exporter value of THIS TLS connection, so a man in the middle who terminates TLS cannot relay it to the real server. Call it AFTER the transport is up - i.e. instead of Start, use StartTransport and then this.
Returns False on ANY failure, and the caller MUST fail closed: drop the connection, do not retry on it. False is also what you get when the peer is not TLS 1.3, because there is then no channel binding to fold in.