go/src/crypto/internal/fips/sha3/sha3.go

type spongeDirection

const spongeAbsorbing

const spongeSqueezing

type Digest

// BlockSize returns the rate of sponge underlying this hash function.
func (d *Digest) BlockSize() int {}

// Size returns the output size of the hash function in bytes.
func (d *Digest) Size() int {}

// Reset resets the Digest to its initial state.
func (d *Digest) Reset() {}

func (d *Digest) Clone() *Digest {}

// permute applies the KeccakF-1600 permutation.
func (d *Digest) permute() {}

// padAndPermute appends the domain separation bits in dsbyte, applies
// the multi-bitrate 10..1 padding rule, and permutes the state.
func (d *Digest) padAndPermute() {}

// Write absorbs more data into the hash's state.
func (d *Digest) Write(p []byte) (n int, err error) {}

func (d *Digest) writeGeneric(p []byte) (n int, err error) {}

// read squeezes an arbitrary number of bytes from the sponge.
func (d *Digest) readGeneric(out []byte) (n int, err error) {}

// Sum appends the current hash to b and returns the resulting slice.
// It does not change the underlying hash state.
func (d *Digest) Sum(b []byte) []byte {}

func (d *Digest) sumGeneric(b []byte) []byte {}

const magicSHA3

const magicShake

const magicCShake

const magicKeccak

const marshaledSize

func (d *Digest) MarshalBinary() ([]byte, error) {}

func (d *Digest) AppendBinary(b []byte) ([]byte, error) {}

func (d *Digest) UnmarshalBinary(b []byte) error {}