ripemd

package
v1.0.2018 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The size of the checksum in bytes.
	Size128 = 16

	// The block size of the hash algorithm in bytes.
	BlockSize128 = 64
)
View Source
const (
	// The size of the checksum in bytes.
	Size160 = 20

	// The block size of the hash algorithm in bytes.
	BlockSize160 = 64
)
View Source
const (
	// The size of the checksum in bytes.
	Size256 = 32

	// The block size of the hash algorithm in bytes.
	BlockSize256 = 64
)
View Source
const (
	// The size of the checksum in bytes.
	Size320 = 40

	// The block size of the hash algorithm in bytes.
	BlockSize320 = 64
)

Variables

This section is empty.

Functions

func New128

func New128() hash.Hash

func New160

func New160() hash.Hash

New160 returns a new hash.Hash computing the checksum.

func New256

func New256() hash.Hash

func New320

func New320() hash.Hash

func Sum128

func Sum128(data []byte) (sum [Size128]byte)

Sum128 returns checksum of the data.

func Sum160

func Sum160(data []byte) (sum [Size160]byte)

Sum160 returns checksum of the data.

func Sum256

func Sum256(data []byte) (sum [Size256]byte)

Sum256 returns checksum of the data.

func Sum320

func Sum320(data []byte) (sum [Size320]byte)

Sum320 returns checksum of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL