esch

package
v1.0.2019 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// hash size
	Size256 = 32
	Size384 = 48
)
View Source
const BlockSize = 16

The blocksize of chaskey in bytes.

Variables

View Source
var C = [8]uint32{
	0xb7e15162, 0xbf715880, 0x38b4da56, 0x324e7738,
	0xbb1185eb, 0x4f7c7b57, 0xcfbfa1c8, 0xc2b3293d,
}

Functions

func GETU32

func GETU32(ptr []byte) uint32

func New

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

New returns a new hash.Hash computing the ESCH checksum

func New256

func New256() hash.Hash

New256 returns a new hash.Hash computing the ESCH checksum

func New384

func New384() hash.Hash

New384 returns a new hash.Hash computing the ESCH checksum

func PUTU32

func PUTU32(ptr []byte, a uint32)

func Sum256

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

Sum256 returns the ESCH-256 checksum of the data.

func Sum384

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

Sum384 returns the ESCH-384 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