sha1Plus

package
v0.0.0-...-6f58986 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SHA1_BLOCK_SIZE  = 64
	SHA1_DIGEST_SIZE = 20
)

Variables

View Source
var PADDING = []byte{
	0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
}

Functions

This section is empty.

Types

type Sha1Plus

type Sha1Plus struct {
	// contains filtered or unexported fields
}

func NewSha1Plus

func NewSha1Plus() *Sha1Plus

func (*Sha1Plus) Final

func (s *Sha1Plus) Final() []byte

func (*Sha1Plus) NonFinal

func (s *Sha1Plus) NonFinal() []byte

func (*Sha1Plus) Reset

func (s *Sha1Plus) Reset()

func (*Sha1Plus) Update

func (s *Sha1Plus) Update(data []byte)

Jump to

Keyboard shortcuts

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