Class DefaultCounterMode

The default "initialize a portion counter" strategy.

With this strategy, the counter is reset to a random number for each new timestamp tick, but some specified leading bits are set to zero to reserve space as the counter overflow guard.

Note that the random number generator employed is not cryptographically strong. This mode does not pay for security because a small random number is insecure anyway.

Constructors

Properties

Methods

Constructors

Properties

overflowGuardSize: number

Methods

  • Returns the next initial counter value of counterSize bits.

    Parameters

    • counterSize: number
    • context: {}

      Returns number