package sha512
import "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.go
- Version
- v0.0.0-20150401213827-cd738dde20f0 (latest)
- Published
- Apr 1, 2015
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 4 days ago –
Tools for package owners.