sha512

Imports

Imports #

"crypto"
"crypto/internal/boring"
"crypto/internal/fips140/sha512"
"hash"

Constants & Variables

BlockSize const #

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

const BlockSize = 128

Size const #

Size is the size, in bytes, of a SHA-512 checksum.

const Size = 64

Size224 const #

Size224 is the size, in bytes, of a SHA-512/224 checksum.

const Size224 = 28

Size256 const #

Size256 is the size, in bytes, of a SHA-512/256 checksum.

const Size256 = 32

Size384 const #

Size384 is the size, in bytes, of a SHA-384 checksum.

const Size384 = 48

Functions

New function #

New returns a new [hash.Hash] computing the SHA-512 checksum. The Hash also implements [encoding.BinaryMarshaler], [encoding.BinaryAppender] and [encoding.BinaryUnmarshaler] to marshal and unmarshal the internal state of the hash.

func New() hash.Hash

New384 function #

New384 returns a new [hash.Hash] computing the SHA-384 checksum. The Hash also implements [encoding.BinaryMarshaler], [encoding.BinaryAppender] and [encoding.BinaryUnmarshaler] to marshal and unmarshal the internal state of the hash.

func New384() hash.Hash

New512_224 function #

New512_224 returns a new [hash.Hash] computing the SHA-512/224 checksum. The Hash also implements [encoding.BinaryMarshaler], [encoding.BinaryAppender] and [encoding.BinaryUnmarshaler] to marshal and unmarshal the internal state of the hash.

func New512_224() hash.Hash

New512_256 function #

New512_256 returns a new [hash.Hash] computing the SHA-512/256 checksum. The Hash also implements [encoding.BinaryMarshaler], [encoding.BinaryAppender] and [encoding.BinaryUnmarshaler] to marshal and unmarshal the internal state of the hash.

func New512_256() hash.Hash

Sum384 function #

Sum384 returns the SHA384 checksum of the data.

func Sum384(data []byte) [Size384]byte

Sum512 function #

Sum512 returns the SHA512 checksum of the data.

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

Sum512_224 function #

Sum512_224 returns the Sum512/224 checksum of the data.

func Sum512_224(data []byte) [Size224]byte

Sum512_256 function #

Sum512_256 returns the Sum512/256 checksum of the data.

func Sum512_256(data []byte) [Size256]byte

init function #

func init()

Generated with Arrow