has160

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package has160 implements HAS-160 encryption, as defined in TTAS.KO-12.0011/R2

Index

Constants

View Source
const (
	// The size of a HAS-160 checksum in bytes.
	Size = 20

	// The blocksize of LSH-256 and HAS-160 in bytes.
	BlockSize = 64
)

Variables

This section is empty.

Functions

func New

func New() hash.Hash

New returns a new hash.Hash computing the HAS-160 checksum.

func Sum

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

Sum returns the HAS-160 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