keeloq - v0.1.2
    Preparing search index...

    Function g5

    • KeeLoq NLFSR function

      Extracts five specified bits from number and combines them into new number

      Parameters

      • x: number

        Number

      • a: number

        Position of first bit (low-order, weight 1)

      • b: number

        Position of second bit (weight 2)

      • c: number

        Position of third bit (weight 4)

      • d: number

        Position of fourth bit (weight 8)

      • e: number

        Position of fifth bit (high-order, weight 16)

      Returns number