sha256

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-256 checksum in bytes.
	Size = 32

	// The size of a SHA224 checksum in bytes.
	Size224 = 28

	// The blocksize of SHA-256 in bytes.
	BlockSize = 64

	// The name of SHA-256
	Name = "SHA256"
)

Variables

This section is empty.

Functions

func New

func New(b []byte) hash.Hashlib

Types

type SHA256

type SHA256 struct {
	Bytes []byte

	Hash hash.Hash
}

func (*SHA256) BlockSize

func (s *SHA256) BlockSize() int

func (SHA256) Copy

func (s SHA256) Copy() *SHA256

func (*SHA256) Digest

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

func (*SHA256) Hexdigest

func (s *SHA256) Hexdigest() string

func (*SHA256) Name

func (s *SHA256) Name() string

func (*SHA256) Update

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

Jump to

Keyboard shortcuts

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