Hash interface describes properties of cryptographic hash functions.

interface Hash {
    blockSize: number;
    digestLength: number;
    clean(): void;
    digest(): Uint8Array;
    finish(out: Uint8Array): this;
    reset(): this;
    update(data: Uint8Array): this;
}

Hierarchy (view full)

Implemented by

    Properties

    blockSize: number
    digestLength: number

    Methods

    • Returns Uint8Array

    • Parameters

      • out: Uint8Array

      Returns this

    • Parameters

      • data: Uint8Array

      Returns this