has160

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

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

Deprecated: HAS-160 is a legacy algorithm.

Index

Constants

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

	// 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