package sha512
import "cuelang.org/go/pkg/crypto/sha512"
Index ¶
- Constants
- func Sum384(data []byte) (sum384 []byte)
- func Sum512(data []byte) []byte
- func Sum512_224(data []byte) (sum224 []byte)
- func Sum512_256(data []byte) (sum256 []byte)
Constants ¶
const ( // Size is the size, in bytes, of a SHA-512 checksum. Size = 64 // Size224 is the size, in bytes, of a SHA-512/224 checksum. Size224 = 28 // Size256 is the size, in bytes, of a SHA-512/256 checksum. Size256 = 32 // Size384 is the size, in bytes, of a SHA-384 checksum. Size384 = 48 // BlockSize is the block size, in bytes, of the SHA-512/224, // SHA-512/256, SHA-384 and SHA-512 hash functions. BlockSize = 128 )
Functions ¶
func Sum384 ¶
Sum384 returns the SHA384 checksum of the data.
func Sum512 ¶
Sum512 returns the SHA512 checksum of the data.
func Sum512_224 ¶
Sum512_224 returns the Sum512/224 checksum of the data.
func Sum512_256 ¶
Sum512_256 returns the Sum512/256 checksum of the data.
Source Files ¶
pkg.go sha512.go
- Version
- v0.12.0 (latest)
- Published
- Jan 30, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 8 hours ago –
Tools for package owners.