lsh256

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 2 Imported by: 6

Documentation

Overview

Package lsh256 implements the LSH-256 hash algorithms as defined in TTAK.KO-12.0276

Index

Constants

View Source
const (
	// The size of a LSH-256 checksum in bytes.
	Size = 32
	// The size of a LSH-224 checksum in bytes.
	Size224 = 28

	// The blocksize of LSH-256 and LSH-224 in bytes.
	BLOCKSIZE = 128
)

Variables

View Source
var ErrInvalidDataBitLen = errors.New("krypto/lsh256: bit level update is not allowed")

Functions

func New

func New() hash.Hash

New returns a new hash.Hash computing the LSH-256 checksum.

func New224

func New224() hash.Hash

New224 returns a new hash.Hash computing the LSH-224 checksum.

func Sum224

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

Sum224 returns the LSH-224 checksum of the data.

func Sum256

func Sum256(data []byte) (sum [Size]byte)

Sum256 returns the LSH-256 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