fsb

package
v1.0.3002 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// hash size
	Size160 = 20
	Size224 = 28
	Size256 = 32
	Size384 = 48
	Size512 = 64
)
View Source
const NUMBER_OF_PARAMETERS = 6

Variables

View Source
var Pi = [2048 * 1024]byte{}/* 272384 elements not displayed */

Functions

func LUI

func LUI(a uint32) int

func New

func New(hashbitlen int) (hash.Hash, error)

New returns a new hash.Hash computing the FSB checksum

func New160

func New160() hash.Hash

New160 returns a new hash.Hash computing the FSB checksum

func New224

func New224() hash.Hash

New224 returns a new hash.Hash computing the FSB checksum

func New256

func New256() hash.Hash

New256 returns a new hash.Hash computing the FSB checksum

func New384

func New384() hash.Hash

New384 returns a new hash.Hash computing the FSB checksum

func New512

func New512() hash.Hash

New512 returns a new hash.Hash computing the FSB checksum

func Sum

func Sum(data []byte, hashbitlen int) (sum []byte, err error)

Sum returns the FSB checksum of the data.

func Sum160

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

Sum160 returns the FSB-160 checksum of the data.

func Sum224

func Sum224(data []byte) (sum224 [Size224]byte)

Sum224 returns the FSB-224 checksum of the data.

func Sum256

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

Sum256 returns the FSB-256 checksum of the data.

func Sum384

func Sum384(data []byte) (sum384 [Size384]byte)

Sum384 returns the FSB-384 checksum of the data.

func Sum512

func Sum512(data []byte) (sum512 [Size512]byte)

Sum512 returns the FSB-512 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