lsh256

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 9 Imported by: 6

Documentation

Overview

Package lsh256 implements the LSH-256, LSH-256-224 hash algorithms as defined in KS X 3262

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

This section is empty.

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) (sum256 [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