sha512

package
v0.0.0-...-e65efa9 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The size of a SHA-512 checksum in bytes.
	Size = 64

	// The blocksize of SHA-512 in bytes.
	BlockSize = 128

	// The name of SHA-512
	Name = "SHA512"
)

Variables

This section is empty.

Functions

func New

func New(b []byte) hash.Hashlib

Types

type SHA512

type SHA512 struct {
	Bytes []byte

	Hash hash.Hash
}

func (*SHA512) BlockSize

func (s *SHA512) BlockSize() int

func (SHA512) Copy

func (s SHA512) Copy() *SHA512

func (*SHA512) Digest

func (s *SHA512) Digest() []byte

func (*SHA512) Hexdigest

func (s *SHA512) Hexdigest() string

func (*SHA512) Name

func (s *SHA512) Name() string

func (*SHA512) Update

func (s *SHA512) Update(b []byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL