Package sha256

Package sha256 implements the he SHA-224 and SHA-256 cryptographic hash functions.

Constants

const BlockSize = 64

The blocksize of SHA256 and SHA224 in bytes.

const Size = 32

The size of a SHA256 checksum in bytes.

Variables

This section is empty.

Functions

func Block
func Block(block uint512, state uint256) uint256

Block adds a new SHA-256 block to the state.

func Sum256
func Sum256(data []byte) [Size]byte

Sum256 returns the SHA256 checksum of the data.

Types

This section is empty.