bmw

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// hash size
	Size224 = 28
	Size256 = 32

	BlockSize256 = 64
)
View Source
const (
	// hash size
	Size384 = 48
	Size512 = 64

	BlockSize512 = 128
)

Variables

View Source
var K512 = []uint64{
	16 * 0x0555555555555555, 17 * 0x0555555555555555,
	18 * 0x0555555555555555, 19 * 0x0555555555555555,
	20 * 0x0555555555555555, 21 * 0x0555555555555555,
	22 * 0x0555555555555555, 23 * 0x0555555555555555,
	24 * 0x0555555555555555, 25 * 0x0555555555555555,
	26 * 0x0555555555555555, 27 * 0x0555555555555555,
	28 * 0x0555555555555555, 29 * 0x0555555555555555,
	30 * 0x0555555555555555, 31 * 0x0555555555555555,
}

Functions

func New224 added in v1.0.2019

func New224() hash.Hash

New224 returns a new hash.Hash computing the bmw-224 checksum

func New256 added in v1.0.2019

func New256() hash.Hash

New256 returns a new hash.Hash computing the bmw-256 checksum

func New384 added in v1.0.2019

func New384() hash.Hash

New384 returns a new hash.Hash computing the bmw-384 checksum

func New512 added in v1.0.2019

func New512() hash.Hash

New512 returns a new hash.Hash computing the bmw-512 checksum

func Sum224 added in v1.0.2019

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

Sum224 returns the bmw-224 checksum of the data.

func Sum256 added in v1.0.2019

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

Sum256 returns the bmw-256 checksum of the data.

func Sum384 added in v1.0.2019

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

Sum384 returns the bmw-384 checksum of the data.

func Sum512 added in v1.0.2019

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

Sum512 returns the bmw-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