package sha512
Import Path
crypto/sha512 (on go.dev)
Dependency Relation
imports 4 packages, and imported by 3 packages
Involved Source Files
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.
Package-Level Functions (total 8)
New returns a new [hash.Hash] computing the SHA-512 checksum. The Hash
also implements [encoding.BinaryMarshaler], [encoding.BinaryAppender] and
[encoding.BinaryUnmarshaler] to marshal and unmarshal the internal
state of the hash.
New384 returns a new [hash.Hash] computing the SHA-384 checksum. The Hash
also implements [encoding.BinaryMarshaler], [encoding.BinaryAppender] and
[encoding.BinaryUnmarshaler] to marshal and unmarshal the internal
state of the hash.
New512_224 returns a new [hash.Hash] computing the SHA-512/224 checksum. The Hash
also implements [encoding.BinaryMarshaler], [encoding.BinaryAppender] and
[encoding.BinaryUnmarshaler] to marshal and unmarshal the internal
state of the hash.
New512_256 returns a new [hash.Hash] computing the SHA-512/256 checksum. The Hash
also implements [encoding.BinaryMarshaler], [encoding.BinaryAppender] and
[encoding.BinaryUnmarshaler] to marshal and unmarshal the internal
state of the hash.
Sum384 returns the SHA384 checksum of the data.
Sum512 returns the SHA512 checksum of the data.
Sum512_224 returns the Sum512/224 checksum of the data.
Sum512_256 returns the Sum512/256 checksum of the data.
Package-Level Constants (total 5)
BlockSize is the block size, in bytes, of the SHA-512/224,
SHA-512/256, SHA-384 and SHA-512 hash functions.
Size is the size, in bytes, of a SHA-512 checksum.
Size224 is the size, in bytes, of a SHA-512/224 checksum.
Size256 is the size, in bytes, of a SHA-512/256 checksum.
Size384 is the size, in bytes, of a SHA-384 checksum.
The pages are generated with Golds v0.7.3. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |