The Go Programming Language

Package sha512

import "crypto/sha512"

Package sha512 implements the SHA384 and SHA512 hash algorithms as defined in FIPS 180-2.

Package files

sha512.go sha512block.go

Constants

The size of a SHA512 checksum in bytes.

const Size = 64

The size of a SHA384 checksum in bytes.

const Size384 = 48

func New

func New() hash.Hash

New returns a new hash.Hash computing the SHA512 checksum.

func New384

func New384() hash.Hash

New384 returns a new hash.Hash computing the SHA384 checksum.

release.r60.3. Except as noted, this content is licensed under a Creative Commons Attribution 3.0 License.