@li0ard/dstu - v0.2.0
    Preparing search index...

    Class Strumok

    Strumok stream cipher

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Strumok stream cipher

      Parameters

      • key: TArg<Uint8Array<ArrayBufferLike>>

        Encryption key (256 or 512 bit)

      • iv: TArg<Uint8Array<ArrayBufferLike>>

      Returns Strumok

    Properties

    blockSize: 128

    Block size

    keySize: number

    Key size

    Methods

    • Perform encryption/decryption

      Parameters

      • msg: TArg<Uint8Array<ArrayBufferLike>>

      Returns Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>

    • Generate next keystream

      Returns Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>