Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/hash/_sha3/sponge.ts>Sponge

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class Sponge
import { Sponge } from "https://deno.land/std@0.116.0/hash/_sha3/sponge.ts";

Sponge construction

Constructors

new
Sponge(option: SpongeOption)

Methods

private
pad(): void

Applies padding to internal state

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