Documentation ¶
Overview ¶
Package skein1024 implements the Skein1024 hash function based on the Threefish1024 tweakable block cipher.
Index ¶
- func New(hashsize int, conf *skein.Config) hash.Hash
- func New256(key []byte) hash.Hash
- func New512(key []byte) hash.Hash
- func Sum(msg []byte, hashsize int, conf *skein.Config) []byte
- func Sum160(out *[20]byte, msg, key []byte)
- func Sum256(out *[32]byte, msg, key []byte)
- func Sum384(out *[48]byte, msg, key []byte)
- func Sum512(out *[64]byte, msg, key []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a hash.Hash computing the Skein1024 checksum with the given hash size. The conf is optional and configurates the hash.Hash
func New256 ¶
New256 returns a hash.Hash computing the Skein1024 256 bit checksum. The key is optional and turns the hash into a MAC.
func New512 ¶
New512 returns a hash.Hash computing the Skein1024 512 bit checksum. The key is optional and turns the hash into a MAC.
func Sum ¶
Sum returns the Skein1024 checksum with the given hash size of msg using the (optional) conf for configuration. The hashsize must be > 0.
func Sum160 ¶
Sum160 computes the 160 bit Skein1024 checksum (or MAC if key is set) of msg and writes it to out. The key is optional and can be nil.
func Sum256 ¶
Sum256 computes the 256 bit Skein1024 checksum (or MAC if key is set) of msg and writes it to out. The key is optional and can be nil.
Types ¶
This section is empty.