Overview

Package sha512 implements the SHA-384, SHA-512, SHA-512/224, and SHA-512/256
hash algorithms as defined in FIPS 180-4.

All the hash.Hash implementations returned by this package also implement
encoding.BinaryMarshaler and encoding.BinaryUnmarshaler to marshal and unmarshal
the internal state of the hash.

Index

sha512block.go

Constants

  1. func New() hash.

New returns a new hash.Hash computing the SHA-512 checksum.

func New384

  1. func New384() hash.

New384 returns a new hash.Hash computing the SHA-384 checksum.

func New512_224

New512_224 returns a new hash.Hash computing the SHA-512/224 checksum.

func New512_256

  1. func New512_256() hash.

New512_256 returns a new hash.Hash computing the SHA-512/256 checksum.

  1. func Sum384(data []byte) (sum384 []byte)

Sum384 returns the SHA384 checksum of the data.

func

Sum512 returns the SHA512 checksum of the data.

func

  1. func Sum512_224(data []) (sum224 [Size224])

Sum512_224 returns the Sum512/224 checksum of the data.

func Sum512_256

    Sum512_256 returns the Sum512/256 checksum of the data.