package sha512
import "crypto/sha512"
Package sha512 implements the SHA384 and SHA512 hash algorithms as defined in FIPS 180-2.
Index ¶
- Constants
- func New() hash.Hash
- func New384() hash.Hash
- 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 ¶
New returns a new hash.Hash computing the SHA512 checksum.
func New384 ¶
New384 returns a new hash.Hash 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 ¶
- Version
- v1.3.0-rc.2
- Published
- Jun 13, 2014
- Platform
- windows/amd64
- Imports
- 2 packages
- Last checked
- 6 seconds ago –
Tools for package owners.