Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IvGen Abstract

Initialization Vector generator.

The .wrap() method creates an LLEncrypt.Key or LLEncrypt that generates an IV for each message before encryption, and updates the internal state of this class after encryption. Typically, a separate IVGen instance should be used for each key.

If a message passed for encryption already has an IV associated, it would bypass this class: in that case, the IV is not checked and the internal state is not updated.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

  • new IvGen(ivLength: number): IvGen

Properties

ivLength: number

Methods

  • generate(): Uint8Array
  • update(plaintextLength: number, ciphertextLength: number): void
  • wrap<T>(key: T): T
  • wrap(f: LLEncrypt): LLEncrypt

Generated using TypeDoc