skein256

package
v1.0.2026 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package skein256 implements the Skein256 hash function based on the Threefish256 tweakable block cipher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(hashsize int, conf *skein.Config) hash.Hash

New returns a hash.Hash computing the Skein256 checksum with the given hash size. The conf is optional and configurates the hash.Hash

func New256

func New256(key []byte) hash.Hash

New256 returns a hash.Hash computing the Skein256 256 bit checksum. The key is optional and turns the hash into a MAC.

func New512

func New512(key []byte) hash.Hash

New512 returns a hash.Hash computing the Skein256 512 bit checksum. The key is optional and turns the hash into a MAC.

func Sum

func Sum(msg []byte, hashsize int, conf *skein.Config) []byte

Sum returns the Skein256 checksum with the given hash size of msg using the (optional) conf for configuration. The hashsize must be > 0.

func Sum160

func Sum160(msg, key []byte) (out [20]byte)

Sum160 computes the 160 bit Skein256 checksum (or MAC if key is set) of msg and writes it to out. The key is optional and can be nil.

func Sum256

func Sum256(msg, key []byte) (out [32]byte)

Sum256 computes the 256 bit Skein256 checksum (or MAC if key is set) of msg and writes it to out. The key is optional and can be nil.

func Sum384

func Sum384(msg, key []byte) (out [48]byte)

Sum384 computes the 384 bit Skein256 checksum (or MAC if key is set) of msg and writes it to out. The key is optional and can be nil.

func Sum512

func Sum512(msg, key []byte) (out [64]byte)

Sum512 computes the 512 bit Skein256 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.

Jump to

Keyboard shortcuts

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