hash

package
v1.0.5016 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CryptoHashSum

func CryptoHashSum(typ string, slices ...[]byte) ([]byte, error)

签名后数据

func GetCryptoHash

func GetCryptoHash(typ string) (crypto.Hash, error)

类型

func HashNames

func HashNames() []string

func HashSum

func HashSum(typ string, slices ...[]byte) ([]byte, error)

Types

type Hash

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

*

  • 摘要 *
  • @create 2022-4-16
  • @author deatil

func AddHash

func AddHash(name string, h HashFunc) *Hash

func New

func New() *Hash

构造函数

func (*Hash) AddHash

func (this *Hash) AddHash(name string, h HashFunc) *Hash

添加

func (*Hash) GetHash

func (this *Hash) GetHash(typ string) (HashFunc, error)

类型

func (*Hash) Names

func (this *Hash) Names() []string

列席名称列表

func (*Hash) Sum

func (this *Hash) Sum(typ string, slices ...[]byte) ([]byte, error)

签名后数据

type HashFunc

type HashFunc = func() hash.Hash

func GetHash

func GetHash(typ string) (HashFunc, error)

Jump to

Keyboard shortcuts

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