Check Initialization Vectors of fixed+random+counter structure for duplication.

CounterIvOptions for expected IV structure.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

ivLength: number

Methods

  • Check IV for incoming message and update internal state.

    Parameters

    • iv: Uint8Array
    • plaintextLength: number
    • ciphertextLength: number

    Returns void

  • Parameters

    • iv: Uint8Array

    Returns {
        counter: bigint;
        fixed: bigint;
        random: bigint;
    }

    • counter: bigint
    • fixed: bigint
    • random: bigint