Documentation
¶
Overview ¶
Package ripemd160 provides a zero-allocation RIPEMD-160 hash implementation for FrogoDB key digest computation. Shared between server and client.
Index ¶
Constants ¶
View Source
const BlockSize = 64
BlockSize is the block size of RIPEMD-160 in bytes.
View Source
const DigestSize = 20
DigestSize is the size of a RIPEMD-160 hash in bytes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Digest ¶
type Digest struct {
// contains filtered or unexported fields
}
Digest computes RIPEMD-160 hashes with zero allocations per call.
func (*Digest) Checksum ¶
func (d *Digest) Checksum() [DigestSize]byte
Checksum returns the 20-byte RIPEMD-160 digest of all data written so far. It does not alter the running state; callers may continue writing after calling.
func (*Digest) Reset ¶
func (d *Digest) Reset()
Reset resets the digest to its initial state for reuse.
Click to show internal directories.
Click to hide internal directories.