ripemd160

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package ripemd160 implements the RIPEMD-160 hash algorithm.

Index

Constants

View Source
const BlockSize = 64

The block size of the hash algorithm in bytes.

View Source
const Size = 20

The size of the checksum in bytes.

Variables

This section is empty.

Functions

func New

func New() hash.Hash

New returns a new hash.Hash computing the checksum.

Types

type Digest

type Digest struct {
	// contains filtered or unexported fields
}

Digest represents the partial evaluation of a checksum.

func (*Digest) BlockSize

func (d *Digest) BlockSize() int

func (*Digest) Reset

func (d *Digest) Reset()

func (*Digest) Size

func (d *Digest) Size() int

func (*Digest) Sum

func (d *Digest) Sum(res []byte) []byte

func (*Digest) Write

func (d *Digest) Write(p []byte) (nn int, err error)

Jump to

Keyboard shortcuts

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