Skip to main content
Module

x/hmac/deps.ts>SHA512

hash-based message authentication code
Latest
class SHA512
import { SHA512 } from "https://deno.land/x/hmac@v2.0.1/deps.ts";

A class representation of the SHA2-512 algorithm.

Constructors

new
SHA512()

Creates a SHA512 instance.

Properties

private
_buffer: Uint8Array
private
_bufferIndex: number
private
_count: Uint32Array
private
_finalized: boolean
private
_H: Uint32Array
private
_K: Uint32Array
readonly
hashSize: number

Methods

private
transform(): void

Performs one transformation cycle.

digest(outputEncoding?: string): string | Uint8Array

Finalizes the hash with additional message data.

Initializes a SHA512 instance.

update(msg: string | Uint8Array, inputEncoding?: string): SHA512

Updates the hash with additional message data.