Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Snif.AkeAuthentication

Tunnel Bound KAPA login for the Snif remoting framework (the post-quantum
  replacement for the legacy verifier classes in StreamSec.Snif.Authentication):

    AkeLogin       - the Tunnel Bound KAPA handshake (AuthInit / AuthStep), plus a
                     two-step OTP login (RequestOTP / LoginOTP) for account recovery.
    AkeChangeAuth  - re-provision the password-derived verifier after re-auth.

  An application chooses its login scheme by including EITHER this unit OR
  StreamSec.Snif.Authentication (the legacy unit). Both may be linked together; this
  unit's initialization calls SnifActivateAkeLogin, and the legacy classes then fail
  closed so a client cannot fall back to the weaker scheme (AKE takes precedence). The
  shared base and the precedence flag live in StreamSec.Snif.CustomAuthentication.

  The heavy client work (Argon2id + KEM keygen/decaps) runs in the Snic proxy helper
  (StreamSec.Snic.Authentication), never in these server classes (design goal G1).

Feature notes: Snif remoting framework (concepts) · Tunnel Bound KAPA (Snif authentication)

Classes, interfaces and records

classTsnifAkeCustomLogin

inherits from TsnifCustomAuthentication

(no public members)

classAkeLogin

inherits from TsnifAkeCustomLogin

function AuthInit(const aUserName: string): TSafeBytes;
-> salt||params||c||ct (empty: unknown user)
function AuthStep(const aResponse: TSafeBytes): TSafeBytes;
verify channel-bound tag -> confirm (empty: rejected / no binding)
function RequestOTP(const aUserName: string): Boolean; function LoginOTP(const aPassword: string): Boolean;

classAkeChangeAuth

inherits from TsnifAkeCustomLogin

function Commit(const aNewPwFile: TSafeBytes): Boolean;
persist a new verifier for the current user