sha512

package standard library
go1.24.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package sha512 implements the SHA-384, SHA-512, SHA-512/224, and SHA-512/256 hash algorithms as defined in FIPS 180-4.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 (d *Digest) AppendBinary(b []byte) ([]byte, error)

func (*Digest) BlockSize

func (d *Digest) BlockSize() int

func (*Digest) MarshalBinary

func (d *Digest) MarshalBinary() ([]byte, error)

func (*Digest) Reset

func (d *Digest) Reset()

func (*Digest) Size

func (d *Digest) Size() int

func (*Digest) Sum

func (d *Digest) Sum(in []byte) []byte

func (*Digest) UnmarshalBinary

func (d *Digest) UnmarshalBinary(b []byte) error

func (*Digest) Write

func (d *Digest) Write(p []byte) (nn int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳