bash

package
v1.0.4026 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// hash size
	Size224 = 28
	Size256 = 32
	Size384 = 48
	Size512 = 64
)
View Source
const BASH_ROT_IDX = 4
View Source
const BASH_ROT_ROUNDS = 8
View Source
const BASH_ROUNDS = 24
View Source
const BASH_SLICES_X = 3
View Source
const BASH_SLICES_Y = 8

Variables

This section is empty.

Functions

func BASHF

func BASHF(S []uint64, bigend bool)

func BASH_L3_S3

func BASH_L3_S3(W0, W1, W2 *uint64, m1, n1, m2, n2 uint64)

func BASH_PERMUTE

func BASH_PERMUTE(S []uint64)

func BASH_ROTHI

func BASH_ROTHI(x, y uint64) uint64

func New

func New(hashsize int) (hash.Hash, error)

New returns a new hash.Hash computing the bash checksum

func New224

func New224() hash.Hash

New224 returns a new hash.Hash computing the Bash checksum

func New256

func New256() hash.Hash

New256 returns a new hash.Hash computing the Bash checksum

func New384

func New384() hash.Hash

New384 returns a new hash.Hash computing the Bash checksum

func New512

func New512() hash.Hash

New512 returns a new hash.Hash computing the Bash checksum

func SWAP64

func SWAP64(A *uint64)

func Sum224

func Sum224(data []byte) (sum224 [Size224]byte)

Sum224 returns the Bash-224 checksum of the data.

func Sum256

func Sum256(data []byte) (sum256 [Size256]byte)

Sum256 returns the Bash-256 checksum of the data.

func Sum384

func Sum384(data []byte) (sum384 [Size384]byte)

Sum384 returns the Bash-384 checksum of the data.

func Sum512

func Sum512(data []byte) (sum512 [Size512]byte)

Sum512 returns the Bash-512 checksum of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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