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.139.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