Options
All
  • Public
  • Public/Protected
  • All
Menu

Abstract base stream cipher template.

Hierarchy

  • Cipher
    • StreamCipher

Index

Properties

Readonly _DEV_XFORM_MODE

_DEV_XFORM_MODE: number

A constant representing decryption mode.

Readonly _ENC_XFORM_MODE

_ENC_XFORM_MODE: number

A constant representing encryption mode.

blockSize

blockSize: number

The number of 32-bit words this cipher operates on. Default: 1 (32 bits)

ivSize

ivSize: number

This cipher's IV size. Default: 4 (128 bits)

keySize

keySize: number

This cipher's key size. Default: 4 (128 bits)

Methods

finalize

  • Finalizes the encryption or decryption process. Note that the finalize operation is effectively a destructive, read-once operation.

    example
    var encrypted = cipher.finalize();
    var encrypted = cipher.finalize('data');
    var encrypted = cipher.finalize(wordArray);

    Parameters

    Returns cryptojs.lib.WordArray

    The data after final processing.

process

  • Adds data to be encrypted or decrypted.

    example
    var encrypted = cipher.process('data');
    var encrypted = cipher.process(wordArray);

    Parameters

    Returns cryptojs.lib.WordArray

    The data after processing.

reset

  • reset(): void
  • Resets this cipher to its initial state.

    example
    cipher.reset();
    

    Returns void

Generated using TypeDoc