Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/backends/srndv2/src/vendor/github.com/dchest/blake256
2016-12-14 17:45:44 -05:00
..
blake256_test.go Revert "Revert "move nntpchand source to nntpchan repo"" 2016-12-14 17:45:44 -05:00
blake256.go Revert "Revert "move nntpchand source to nntpchan repo"" 2016-12-14 17:45:44 -05:00
blake256block.go Revert "Revert "move nntpchand source to nntpchan repo"" 2016-12-14 17:45:44 -05:00
README.markdown Revert "Revert "move nntpchand source to nntpchan repo"" 2016-12-14 17:45:44 -05:00

Package blake256

import "github.com/dchest/blake256"

Package blake256 implements BLAKE-256 and BLAKE-224 hash functions (SHA-3 candidate).

Public domain.

Constants

const BlockSize = 64

The block size of the hash algorithm in bytes.

const Size = 32

The size of BLAKE-256 hash in bytes.

const Size224 = 28

The size of BLAKE-224 hash in bytes.

Functions

func New

func New() hash.Hash

New returns a new hash.Hash computing the BLAKE-256 checksum.

func New224

func New224() hash.Hash

New224 returns a new hash.Hash computing the BLAKE-224 checksum.

func New224Salt

func New224Salt(salt []byte) hash.Hash

New224Salt is like New224 but initializes salt with the given 16-byte slice.

func NewSalt

func NewSalt(salt []byte) hash.Hash

NewSalt is like New but initializes salt with the given 16-byte slice.