Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CounterIvOptions

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

Index

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