edgeport - v1.0.3
    Preparing search index...

    Function createPacketCipher

    • Builds a PacketCipher for one direction from the negotiated algorithm names and the derived key material.

      Parameters

      • cipher: string

        The negotiated encryption algorithm name.

      • mac: string

        The negotiated MAC algorithm name (ignored for AEAD ciphers).

      • keys: DirectionKeys

        The per-direction key/IV/MAC material from the key schedule.

      Returns Promise<PacketCipher>

      A cipher that seals and opens packets for that direction.

      1.0.0