luffa

package
v1.0.2025 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

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

Variables

View Source
var IV_256 = []uint32{
	0x6d251e69, 0x44b051e0, 0x4eaa6fb4, 0xdbf78465,
	0x6e292011, 0x90152df4, 0xee058139, 0xdef610bb,
	0xc3b44b95, 0xd9d2f256, 0x70eee9a0, 0xde099fa3,
	0x5d9b0557, 0x8fc944b3, 0xcf1ccf0e, 0x746cd581,
	0xf7efc89d, 0x5dba5781, 0x04016ce5, 0xad659c05,
	0x0306194f, 0x666d1836, 0x24aa230a, 0x8b264ae7,
}
View Source
var IV_384 = []uint32{
	0x6d251e69, 0x44b051e0, 0x4eaa6fb4, 0xdbf78465,
	0x6e292011, 0x90152df4, 0xee058139, 0xdef610bb,
	0xc3b44b95, 0xd9d2f256, 0x70eee9a0, 0xde099fa3,
	0x5d9b0557, 0x8fc944b3, 0xcf1ccf0e, 0x746cd581,
	0xf7efc89d, 0x5dba5781, 0x04016ce5, 0xad659c05,
	0x0306194f, 0x666d1836, 0x24aa230a, 0x8b264ae7,
	0x858075d5, 0x36d79cce, 0xe571f7d7, 0x204b1f67,
	0x35870c6a, 0x57e9e923, 0x14bcb808, 0x7cde72ce,
}
View Source
var IV_512 = []uint32{
	0x6d251e69, 0x44b051e0, 0x4eaa6fb4, 0xdbf78465,
	0x6e292011, 0x90152df4, 0xee058139, 0xdef610bb,
	0xc3b44b95, 0xd9d2f256, 0x70eee9a0, 0xde099fa3,
	0x5d9b0557, 0x8fc944b3, 0xcf1ccf0e, 0x746cd581,
	0xf7efc89d, 0x5dba5781, 0x04016ce5, 0xad659c05,
	0x0306194f, 0x666d1836, 0x24aa230a, 0x8b264ae7,
	0x858075d5, 0x36d79cce, 0xe571f7d7, 0x204b1f67,
	0x35870c6a, 0x57e9e923, 0x14bcb808, 0x7cde72ce,
	0x6c68e9be, 0x5ec41e22, 0xc825b7c7, 0xaffb4363,
	0xf5df3999, 0x0fc688f1, 0xb07224cc, 0x03e86cea,
}
View Source
var RC00_256 = []uint32{
	0x303994a6, 0xc0e65299, 0x6cc33a12, 0xdc56983e,
	0x1e00108f, 0x7800423d, 0x8f5b7882, 0x96e1db12,
}
View Source
var RC00_384 = []uint32{
	0x303994a6, 0xc0e65299, 0x6cc33a12, 0xdc56983e,
	0x1e00108f, 0x7800423d, 0x8f5b7882, 0x96e1db12,
}
View Source
var RC00_512 = []uint32{
	0x303994a6, 0xc0e65299, 0x6cc33a12, 0xdc56983e,
	0x1e00108f, 0x7800423d, 0x8f5b7882, 0x96e1db12,
}
View Source
var RC04_256 = []uint32{
	0xe0337818, 0x441ba90d, 0x7f34d442, 0x9389217f,
	0xe5a8bce6, 0x5274baf4, 0x26889ba7, 0x9a226e9d,
}
View Source
var RC04_384 = []uint32{
	0xe0337818, 0x441ba90d, 0x7f34d442, 0x9389217f,
	0xe5a8bce6, 0x5274baf4, 0x26889ba7, 0x9a226e9d,
}
View Source
var RC04_512 = []uint32{
	0xe0337818, 0x441ba90d, 0x7f34d442, 0x9389217f,
	0xe5a8bce6, 0x5274baf4, 0x26889ba7, 0x9a226e9d,
}
View Source
var RC10_256 = []uint32{
	0xb6de10ed, 0x70f47aae, 0x0707a3d4, 0x1c1e8f51,
	0x707a3d45, 0xaeb28562, 0xbaca1589, 0x40a46f3e,
}
View Source
var RC10_384 = []uint32{
	0xb6de10ed, 0x70f47aae, 0x0707a3d4, 0x1c1e8f51,
	0x707a3d45, 0xaeb28562, 0xbaca1589, 0x40a46f3e,
}
View Source
var RC10_512 = []uint32{
	0xb6de10ed, 0x70f47aae, 0x0707a3d4, 0x1c1e8f51,
	0x707a3d45, 0xaeb28562, 0xbaca1589, 0x40a46f3e,
}
View Source
var RC14_256 = []uint32{
	0x01685f3d, 0x05a17cf4, 0xbd09caca, 0xf4272b28,
	0x144ae5cc, 0xfaa7ae2b, 0x2e48f1c1, 0xb923c704,
}
View Source
var RC14_384 = []uint32{
	0x01685f3d, 0x05a17cf4, 0xbd09caca, 0xf4272b28,
	0x144ae5cc, 0xfaa7ae2b, 0x2e48f1c1, 0xb923c704,
}
View Source
var RC14_512 = []uint32{
	0x01685f3d, 0x05a17cf4, 0xbd09caca, 0xf4272b28,
	0x144ae5cc, 0xfaa7ae2b, 0x2e48f1c1, 0xb923c704,
}
View Source
var RC20_256 = []uint32{
	0xfc20d9d2, 0x34552e25, 0x7ad8818f, 0x8438764a,
	0xbb6de032, 0xedb780c8, 0xd9847356, 0xa2c78434,
}
View Source
var RC20_384 = []uint32{
	0xfc20d9d2, 0x34552e25, 0x7ad8818f, 0x8438764a,
	0xbb6de032, 0xedb780c8, 0xd9847356, 0xa2c78434,
}
View Source
var RC20_512 = []uint32{
	0xfc20d9d2, 0x34552e25, 0x7ad8818f, 0x8438764a,
	0xbb6de032, 0xedb780c8, 0xd9847356, 0xa2c78434,
}
View Source
var RC24_256 = []uint32{
	0xe25e72c1, 0xe623bb72, 0x5c58a4a4, 0x1e38e2e7,
	0x78e38b9d, 0x27586719, 0x36eda57f, 0x703aace7,
}
View Source
var RC24_384 = []uint32{
	0xe25e72c1, 0xe623bb72, 0x5c58a4a4, 0x1e38e2e7,
	0x78e38b9d, 0x27586719, 0x36eda57f, 0x703aace7,
}
View Source
var RC24_512 = []uint32{
	0xe25e72c1, 0xe623bb72, 0x5c58a4a4, 0x1e38e2e7,
	0x78e38b9d, 0x27586719, 0x36eda57f, 0x703aace7,
}
View Source
var RC30_384 = []uint32{
	0xb213afa5, 0xc84ebe95, 0x4e608a22, 0x56d858fe,
	0x343b138f, 0xd0ec4e3d, 0x2ceb4882, 0xb3ad2208,
}
View Source
var RC30_512 = []uint32{
	0xb213afa5, 0xc84ebe95, 0x4e608a22, 0x56d858fe,
	0x343b138f, 0xd0ec4e3d, 0x2ceb4882, 0xb3ad2208,
}
View Source
var RC34_384 = []uint32{
	0xe028c9bf, 0x44756f91, 0x7e8fce32, 0x956548be,
	0xfe191be2, 0x3cb226e5, 0x5944a28e, 0xa1c4c355,
}
View Source
var RC34_512 = []uint32{
	0xe028c9bf, 0x44756f91, 0x7e8fce32, 0x956548be,
	0xfe191be2, 0x3cb226e5, 0x5944a28e, 0xa1c4c355,
}
View Source
var RC40_512 = []uint32{
	0xf0d2e9e3, 0xac11d7fa, 0x1bcb66f2, 0x6f2d9bc9,
	0x78602649, 0x8edae952, 0x3b6ba548, 0xedae9520,
}
View Source
var RC44_512 = []uint32{
	0x5090d577, 0x2d1925ab, 0xb46496ac, 0xd1925ab0,
	0x29131ab6, 0x0fc053c3, 0x3f014f0c, 0xfc053c31,
}

Functions

func New224

func New224() hash.Hash

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

func New256

func New256() hash.Hash

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

func New384

func New384() hash.Hash

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

func New512

func New512() hash.Hash

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

func Sum224

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

Sum224 returns the luffa-224 checksum of the data.

func Sum256

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

Sum256 returns the luffa-256 checksum of the data.

func Sum384

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

Sum384 returns the luffa-384 checksum of the data.

func Sum512

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

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