hash

package
v0.0.0-...-4dec521 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHMACHash

func GetHMACHash(src []byte, hashType gocrypt.Hash, key []byte) (dst []byte, err error)

GetHMACHash gets hmac hashed bytes with defined hashType & key

func GetHMACHashEncodeToString

func GetHMACHashEncodeToString(encodeType gocrypt.Encode, src []byte, hashType gocrypt.Hash, key []byte) (dst string, err error)

GetHMACHashEncodeToString gets hmac hashed bytes with defined hashType & key then encode to string

func GetHash

func GetHash(src []byte, hashType gocrypt.Hash) (dst []byte, err error)

GetHash gets hashed bytes with defined hashType

func GetHashEncodeToString

func GetHashEncodeToString(encodeType gocrypt.Encode, src []byte, hashType gocrypt.Hash) (dst string, err error)

GetHashEncodeToString gets hashed bytes with defined hashType and then encode to string

func NewHMAC

func NewHMAC(hashType gocrypt.Hash, key []byte) *hmacHash

func NewHash

func NewHash(hashType gocrypt.Hash) *hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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