Documentation
¶
Index ¶
- Constants
- Variables
- func GETU32(ptr []byte) uint32
- func New(size int) hash.Hash
- func New224() hash.Hash
- func New256() hash.Hash
- func New384() hash.Hash
- func New512() hash.Hash
- func NewMD6(size int, key []byte, levels int) hash.Hash
- func NewWithKey(size int, key []byte) hash.Hash
- func PUTU32(ptr []byte, a uint32)
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 NewWithKey ¶
NewWithKey returns a new hash.Hash computing the MD6 checksum.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.