Class JPakeThreePass

Implements a three-pass J-PAKE protocol.

Constructors

Properties

userId: string

The unique identifier for the current user.

Methods

  • Derives the shared key after completing the J-PAKE protocol. Ran on both the initiator and the responder.

    Returns Uint8Array

    The derived shared key.

  • Performs the second pass of the J-PAKE protocol. Ran on the responder.

    Parameters

    • peerRound1Result: Round1Result

      The result from the peer's first round.

    • s: Uint8Array

      The shared secret.

    • peerUserId: string

      The identifier for the peer user.

    Returns Pass2Result

    The result of the second pass.

  • Performs the third pass of the J-PAKE protocol. Ran on the initiator.

    Parameters

    • pass2Result: Pass2Result

      The result from the second pass.

    • s: Uint8Array

      The shared secret.

    • peerUserId: string

      The identifier for the peer user.

    Returns Round2Result

    The result of the third pass.

  • Processes the results from the third pass received from the peer. Ran on the responder.

    Parameters

    • pass3Result: Round2Result

      The result from the peer's third pass.

    Returns void