md6

package
v1.0.3003 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 512

The blocksize of md6 in bytes.

View Source
const KeySize = 64
View Source
const Size256 = 32

The size of a md6 checksum in bytes.

View Source
const Size512 = 64

Variables

View Source
var Q = [][]uint32{
	{0x7311C281, 0x2425CFA0},
	{0x64322864, 0x34AAC8E7},
	{0xB60450E9, 0xEF68B7C1},
	{0xE8FB2390, 0x8D9F06F1},
	{0xDD2E76CB, 0xA691E5BF},
	{0x0CD0D63B, 0x2C30BC41},
	{0x1F8CCF68, 0x23058F8A},
	{0x54E5ED5B, 0x88E3775D},
	{0x4AD12AAE, 0x0A6D6031},
	{0x3E7F16BB, 0x88222E0D},
	{0x8AF8671D, 0x3FB50C2C},
	{0x995AD117, 0x8BD25C31},
	{0xC878C1DD, 0x04C4B633},
	{0x3B72066C, 0x7A1552AC},
	{0x0D6F3522, 0x631EFFCB},
}
View Source
var S0 = []uint32{0x01234567, 0x89ABCDEF}
View Source
var Sm = []uint32{0x7311C281, 0x2425CFA0}

Functions

func GETU32

func GETU32(ptr []byte) uint32

func New

func New(size int) hash.Hash

New returns a new hash.Hash computing the MD6 checksum.

func New224

func New224() hash.Hash

New224 returns a new hash.Hash computing the MD6 checksum.

func New256

func New256() hash.Hash

New256 returns a new hash.Hash computing the MD6 checksum.

func New384

func New384() hash.Hash

New384 returns a new hash.Hash computing the MD6 checksum.

func New512

func New512() hash.Hash

New512 returns a new hash.Hash computing the MD6 checksum.

func NewMD6

func NewMD6(size int, key []byte, levels int) hash.Hash

NewMD6 returns a new hash.Hash computing the MD6 checksum.

func NewWithKey

func NewWithKey(size int, key []byte) hash.Hash

NewWithKey returns a new hash.Hash computing the MD6 checksum.

func PUTU32

func PUTU32(ptr []byte, a uint32)

Types

This section is empty.

Jump to

Keyboard shortcuts

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