Hash interface describes properties of cryptographic hash functions.

interface SerializableHash {
    blockSize: number;
    digestLength: number;
    clean(): void;
    cleanSavedState(savedState: any): void;
    digest(): Uint8Array;
    finish(out: Uint8Array): this;
    reset(): this;
    restoreState(savedState: any): this;
    saveState(): any;
    update(data: Uint8Array): this;
}

Hierarchy (view full)

  • Hash
    • SerializableHash

Implemented by

    Properties

    blockSize: number
    digestLength: number

    Methods

    • Parameters

      • savedState: any

      Returns void

    • Parameters

      • out: Uint8Array

      Returns this

    • Parameters

      • savedState: any

      Returns this

    • Parameters

      • data: Uint8Array

      Returns this