ripemd160

package
v0.3.19 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package ripemd160 implements the functions, types, and interfaces for the module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig() *types.Config

DefaultConfig returns the default configuration for RIPEMD-160

func NewRIPEMD160

func NewRIPEMD160(config *types.Config) (interfaces.Cryptographic, error)

NewRIPEMD160 creates a new RIPEMD-160 crypto instance

func ResolveType

func ResolveType(algType types.Type) (types.Type, error)

ResolveType resolves the Type for PBKDF2, providing a default underlying hash if not specified.

Types

type RIPEMD160

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

RIPEMD160 implements the RIPEMD-160 hashing algorithm

func (*RIPEMD160) Hash

func (r *RIPEMD160) Hash(password string) (*types.HashParts, error)

Hash implements the hash method

func (*RIPEMD160) HashWithSalt

func (r *RIPEMD160) HashWithSalt(password string, salt []byte) (*types.HashParts, error)

HashWithSalt is not applicable for simple hash functions like RIPEMD-160

func (*RIPEMD160) Type

func (r *RIPEMD160) Type() types.Type

func (*RIPEMD160) Verify

func (r *RIPEMD160) Verify(parts *types.HashParts, password string) error

Verify implements the verify method

Jump to

Keyboard shortcuts

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