Options
All
  • Public
  • Public/Protected
  • All
Menu

CTR implements counter cipher mode.

Note that CTR mode is malleable and generally should not be used without authentication. Instead, use an authenticated encryption mode, such as GCM.

Hierarchy

  • CTR

Index

Constructors

  • new CTR(cipher: BlockCipher, iv: Uint8Array): CTR

Methods

  • setCipher(cipher: BlockCipher, iv: Uint8Array): CTR
  • stream(dst: Uint8Array): void
  • streamXOR(src: Uint8Array, dst: Uint8Array): void
  • Parameters

    • src: Uint8Array
    • dst: Uint8Array

    Returns void

Generated using TypeDoc