package sha512
import "crypto/internal/fips140/sha512"
Package sha512 implements the SHA-384, SHA-512, SHA-512/224, and SHA-512/256 hash algorithms as defined in FIPS 180-4.
Index ¶
- type Digest
- func New() *Digest
- func New384() *Digest
- func New512_224() *Digest
- func New512_256() *Digest
- func (d *Digest) AppendBinary(b []byte) ([]byte, error)
- func (d *Digest) BlockSize() int
- func (d *Digest) MarshalBinary() ([]byte, error)
- func (d *Digest) Reset()
- func (d *Digest) Size() int
- func (d *Digest) Sum(in []byte) []byte
- func (d *Digest) UnmarshalBinary(b []byte) error
- func (d *Digest) Write(p []byte) (nn int, err error)
Types ¶
type Digest ¶
type Digest struct {
// contains filtered or unexported fields
}
Digest is a SHA-384, SHA-512, SHA-512/224, or SHA-512/256 hash.Hash implementation.
func New ¶
func New() *Digest
New returns a new Digest computing the SHA-512 hash.
func New384 ¶
func New384() *Digest
New384 returns a new Digest computing the SHA-384 hash.
func New512_224 ¶
func New512_224() *Digest
New512_224 returns a new Digest computing the SHA-512/224 hash.
func New512_256 ¶
func New512_256() *Digest
New512_256 returns a new Digest computing the SHA-512/256 hash.
func (*Digest) AppendBinary ¶
func (*Digest) BlockSize ¶
func (*Digest) MarshalBinary ¶
func (*Digest) Reset ¶
func (d *Digest) Reset()
func (*Digest) Size ¶
func (*Digest) Sum ¶
func (*Digest) UnmarshalBinary ¶
func (*Digest) Write ¶
Source Files ¶
cast.go sha512.go sha512block.go sha512block_amd64.go
Directories ¶
Path | Synopsis |
---|---|
crypto/internal/fips140/sha512/_asm |
- Version
- v1.24.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 7 minutes ago –
Tools for package owners.