Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dchest/blake256
Go package blake256 implements BLAKE-256 and BLAKE-224 hash functions (SHA-3 finalist).
https://github.com/dchest/blake256
Last synced: 23 days ago
JSON representation
Go package blake256 implements BLAKE-256 and BLAKE-224 hash functions (SHA-3 finalist).
- Host: GitHub
- URL: https://github.com/dchest/blake256
- Owner: dchest
- Created: 2011-06-24T17:27:43.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2019-08-07T07:16:48.000Z (over 5 years ago)
- Last Synced: 2024-10-14T12:08:18.915Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 48.8 KB
- Stars: 20
- Watchers: 4
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Package blake256
=====================import "github.com/dchest/blake256"
Package blake256 implements BLAKE-256 and BLAKE-224 hash functions (SHA-3
candidate).Public domain.
Constants
---------``` go
const BlockSize = 64
```
The block size of the hash algorithm in bytes.``` go
const Size = 32
```
The size of BLAKE-256 hash in bytes.``` go
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.
### func Sum256
func Sum256(data []byte) [Size]byte
Sum returns the BLAKE-256 checksum of the data.
### func Sum224
func Sum224(data []byte) (sum224 [Size224]byte)
Sum224 returns the BLAKE-224 checksum of the data.