Skip to main content
Module

x/csv/dev_deps.ts>Sha256

Streaming API for reading and writing CSV for https://deno.land/
Latest
class Sha256
import { Sha256 } from "https://deno.land/x/csv@v0.9.2/dev_deps.ts";

A class representation of the SHA256 algorithm.

Constructors

new
Sha256()

Creates a SHA256 instance.

Properties

private
_buf: Uint8Array
private
_bufIdx: 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.

init(): SHA256

Initializes a hash.

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

Updates the hash with additional message data.