Function incrementHashDigestIterations

  • Given a program state, increment the hash digest iteration count for a message of the provided length. If the total would exceed the maximum, append an error.

    Type Parameters


    • state: State

      the program state

    • messageLength: number

      the message length

    • operation: ((nextState: State) => State)

      the operation to execute if no error occurred

        • (nextState: State): State
        • Parameters

          • nextState: State

          Returns State

    Returns State

Generated using TypeDoc