hashalgo

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keccak256

type Keccak256 struct{}

func (*Keccak256) DoubleHash

func (k *Keccak256) DoubleHash(msg []byte) []byte

func (*Keccak256) GetHMAC

func (k *Keccak256) GetHMAC(secret string, message string) ([]byte, error)

func (*Keccak256) GetHash

func (k *Keccak256) GetHash(msg []byte) []byte

type SHA256

type SHA256 struct{}

func (*SHA256) DoubleHash

func (s *SHA256) DoubleHash(msg []byte) []byte

func (*SHA256) GetHMAC

func (s *SHA256) GetHMAC(secret string, message string) ([]byte, error)

func (*SHA256) GetHash

func (s *SHA256) GetHash(msg []byte) []byte

type SM3

type SM3 struct{}

func (*SM3) DoubleHash

func (s *SM3) DoubleHash(msg []byte) []byte

func (*SM3) GetHMAC

func (s *SM3) GetHMAC(secret string, message string) ([]byte, error)

func (*SM3) GetHash

func (s *SM3) GetHash(msg []byte) []byte

type Sha3256

type Sha3256 struct{}

func (*Sha3256) DoubleHash

func (s *Sha3256) DoubleHash(msg []byte) []byte

func (*Sha3256) GetHMAC

func (s *Sha3256) GetHMAC(secret string, message string) ([]byte, error)

func (*Sha3256) GetHash

func (s *Sha3256) GetHash(msg []byte) []byte

Jump to

Keyboard shortcuts

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