hash

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash string
const (
	SHA1   Hash = "sha1"   // 长度为 sha1.Size
	SHA224 Hash = "sha224" // 长度为 sha256.Size224
	SHA256 Hash = "sha256" // 长度为 sha256.Size
	SHA384 Hash = "sha384" // 长度为 sha512.Size384
	SHA512 Hash = "sha512" // 长度为 sha256.Size
)

func (Hash) Hash

func (h Hash) Hash() crypto.Hash

func (Hash) New

func (h Hash) New() hash.Hash

func (Hash) Size

func (h Hash) Size() int

func (Hash) Sum

func (h Hash) Sum(data []byte) []byte

Jump to

Keyboard shortcuts

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