Skip to main content
Module

std/hash/_sha3/sponge.ts>Sponge

Deno standard library
Go to Latest
class Sponge
import { Sponge } from "https://deno.land/std@0.157.0/hash/_sha3/sponge.ts";

Sponge construction

Constructors

new
Sponge(option: SpongeOption)

Methods

protected
squeeze(length: number): Uint8Array

Squeezes internal state

digest(): ArrayBuffer

Returns the hash in ArrayBuffer

toString(format?: "hex"): string

Returns the hash in given format

update(data: Message): this

Updates internal state by absorbing