MPCL

Package sha512

Package sha512 implements the SHA-384, SHA-512, SHA-512/224, and SHA-512/256 cryptographic hash functions.

Constants

const BlockSize = 128

BlockSize is the block size, in bytes, of the SHA-512/224, SHA-512/256, SHA-384 and SHA-512 hash functions.

const Size = 64

The size of a SHA512 checksum in bytes.

Variables

This section is empty.

Functions

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

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

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

Sum512 returns the SHA512 checksum of the data.

Types

This section is empty.