commonHash

package
v0.0.0-...-fdc5c16 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHashMethod

func RegisterHashMethod(key string, method hashMethod)

Types

type CommonHash

type CommonHash struct{ HashType string }

func (CommonHash) HMAC

func (c CommonHash) HMAC(data []byte, key []byte) []byte

func (CommonHash) HMACHex

func (c CommonHash) HMACHex(data []byte, key []byte) string

func (CommonHash) Name

func (c CommonHash) Name() string

func (CommonHash) OriginalHash

func (c CommonHash) OriginalHash() func() hash.Hash

func (CommonHash) Sum

func (c CommonHash) Sum(data []byte) []byte

func (CommonHash) SumHex

func (c CommonHash) SumHex(data []byte) string

Jump to

Keyboard shortcuts

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