edgeport - v1.0.3
    Preparing search index...

    Function deriveSessionKeys

    • Derives both directions' IV/key/MAC material from K, H, and the session id.

      Parameters

      • hash: HashName

        The kex hash.

      • sharedSecret: Uint8Array

        K as an unsigned big-endian magnitude.

      • h: Uint8Array

        The exchange hash for this kex.

      • sessionId: Uint8Array

        The session identifier (H of the first kex).

      • sizes: KeyScheduleSizes

        The byte lengths the negotiated ciphers/MACs need (same both ways).

      Returns Promise<SessionKeys>

      The client-to-server and server-to-client key material.

      1.0.0