Options for Initialization Vectors using fixed+random+counter structure.

IVs following this construction method have three parts:

Li

fixed bits, specified in options.

Li

random bits, different for each key and in each session.

Li

counter bits, monotonically increasing for each plaintext/ciphertext block.

Hierarchy

Properties

blockSize: number

Crypto algorithm block size in octets. If plaintext and ciphertext have different lengths, the longer length is considered.

counterBits: number

Number of counter bits.

fixed?: bigint | Uint8Array

Fixed portion. Required if fixedBits is positive. This may be specified as a bigint or a Uint8Array. If it's a Uint8Array, it must have fixedBits bits. The least significant bits are taken.

fixedBits?: number

Number of fixed bits.

Default

0
ivLength: number

IV length in octets.

Generated using TypeDoc