Documentation ¶
Overview ¶
Package blake2s implements the BLAKE2s hash algorithm as defined in RFC 7693.
Index ¶
- Constants
- func New128(key []byte) (hash.Hash, error)
- func New160(key []byte) (hash.Hash, error)
- func New224(key []byte) (hash.Hash, error)
- func New256(key []byte) (hash.Hash, error)
- func Sum128(data []byte) [Size128]byte
- func Sum160(data []byte) [Size160]byte
- func Sum224(data []byte) [Size224]byte
- func Sum256(data []byte) [Size]byte
Constants ¶
const ( // The blocksize of BLAKE2s in bytes. BlockSize = 64 // The hash size of BLAKE2s-256 in bytes. Size = 32 // The hash size of BLAKE2s-224 in bytes. Size224 = 28 // The hash size of BLAKE2s-160 in bytes. Size160 = 20 // The hash size of BLAKE2s-128 in bytes. Size128 = 16 )
Variables ¶
This section is empty.
Functions ¶
func New128 ¶
New128 returns a new hash.Hash computing the BLAKE2s-128 checksum. A non-nil key turns the hash into a MAC. The key must between zero and 32 bytes long.
func New160 ¶
New160 returns a new hash.Hash computing the BLAKE2s-160 checksum. A non-nil key turns the hash into a MAC. The key must between zero and 32 bytes long.
func New224 ¶
New224 returns a new hash.Hash computing the BLAKE2s-224 checksum. A non-nil key turns the hash into a MAC. The key must between zero and 32 bytes long.
func New256 ¶
New256 returns a new hash.Hash computing the BLAKE2s-256 checksum. A non-nil key turns the hash into a MAC. The key must between zero and 32 bytes long.
Types ¶
This section is empty.