sha1

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-1 checksum in bytes.
	Size = 20

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

	// The name of SHA1
	Name = "SHA1"
)

Variables

This section is empty.

Functions

func New

func New(b []byte) hash.Hashlib

Types

type SHA1

type SHA1 struct {
	Bytes []byte

	Hash hash.Hash
}

func (*SHA1) BlockSize

func (s *SHA1) BlockSize() int

func (SHA1) Copy

func (s SHA1) Copy() *SHA1

func (*SHA1) Digest

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

func (*SHA1) Hexdigest

func (s *SHA1) Hexdigest() string

func (*SHA1) Name

func (s *SHA1) Name() string

func (*SHA1) Update

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

Jump to

Keyboard shortcuts

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