package sha512
import "github.com/docker/distribution/Godeps/_workspace/src/github.com/jlhawn/go-crypto/sha512"
Package sha512 implements the SHA384 and SHA512 hash algorithms as defined in FIPS 180-2.
Index ¶
- Constants
- func New() crypto.ResumableHash
- func New384() crypto.ResumableHash
- func Sum384(data []byte) (sum384 [Size384]byte)
- func Sum512(data []byte) [Size]byte
Constants ¶
const BlockSize = 128
The blocksize of SHA512 and SHA384 in bytes.
const Size = 64
The size of a SHA512 checksum in bytes.
const Size384 = 48
The size of a SHA384 checksum in bytes.
Functions ¶
func New ¶
func New() crypto.ResumableHash
New returns a new crypto.ResumableHash computing the SHA512 checksum.
func New384 ¶
func New384() crypto.ResumableHash
New384 returns a new crypto.ResumableHash computing the SHA384 checksum.
func Sum384 ¶
Sum384 returns the SHA384 checksum of the data.
func Sum512 ¶
Sum512 returns the SHA512 checksum of the data.
Source Files ¶
resume.go sha512.go sha512block_decl.go
- Version
- v2.0.0-rc.1+incompatible
- Published
- Apr 7, 2015
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 hours ago –
Tools for package owners.