PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@stablelib/sha512/lib

Просмотр файла: sha512.d.ts

/**
 * Package sha512 implements SHA-2-512 cryptographic hash function.
 */
import { SerializableHash } from "@stablelib/hash";
export declare const DIGEST_LENGTH = 64;
export declare const BLOCK_SIZE = 128;
/**
 * SHA-2-512 cryptographic hash algorithm.
 */
export declare class SHA512 implements SerializableHash {
    /** Length of hash output */
    readonly digestLength: number;
    /** Block size */
    readonly blockSize: number;
    protected _stateHi: Int32Array;
    protected _stateLo: Int32Array;
    private _tempHi;
    private _tempLo;
    private _buffer;
    private _bufferLength;
    private _bytesHashed;
    private _finished;
    constructor();
    protected _initState(): void;
    /**
     * Resets hash state making it possible
     * to re-use this instance to hash other data.
     */
    reset(): this;
    /**
     * Cleans internal buffers and resets hash state.
     */
    clean(): void;
    /**
     * Updates hash state with the given data.
     *
     * Throws error when trying to update already finalized hash:
     * instance must be reset to update it again.
     */
    update(data: Uint8Array, dataLength?: number): this;
    /**
     * Finalizes hash state and puts hash into out.
     * If hash was already finalized, puts the same value.
     */
    finish(out: Uint8Array): this;
    /**
     * Returns the final hash digest.
     */
    digest(): Uint8Array;
    /**
     * Function useful for HMAC/PBKDF2 optimization. Returns hash state to be
     * used with restoreState(). Only chain value is saved, not buffers or
     * other state variables.
     */
    saveState(): SavedState;
    /**
     * Function useful for HMAC/PBKDF2 optimization. Restores state saved by
     * saveState() and sets bytesHashed to the given value.
     */
    restoreState(savedState: SavedState): this;
    /**
     * Cleans state returned by saveState().
     */
    cleanSavedState(savedState: SavedState): void;
}
export declare type SavedState = {
    stateHi: Int32Array;
    stateLo: Int32Array;
    buffer: Uint8Array | undefined;
    bufferLength: number;
    bytesHashed: number;
};
export declare function hash(data: Uint8Array): Uint8Array;

Выполнить команду


Для локальной разработки. Не используйте в интернете!