Crypto Lib
    Preparing search index...

    Function generateKE3

    • GenerateKE3 (RFC 9807 § 6.2.3): recover the credentials, authenticate the server and produce KE3.

      Use exportKey and sessionKey only after this returns; send ke3 to the server, which accepts the session only if serverFinish succeeds.

      Parameters

      Returns { ke3: KE3; sessionKey: Uint8Array; exportKey: Uint8Array }

      CryptoError OPAQUE_ENVELOPE_RECOVERY for a wrong password, an unknown user (fake record) or a tampered credential response; OPAQUE_SERVER_AUTHENTICATION if the server MAC does not verify.