hasher

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5Hash

func Md5Hash(data []byte) []byte

Md5Hash data

Types

type AkSKHashHelper

type AkSKHashHelper interface {
	HashWithKey(data []byte, key []byte) []byte
	VerifyHash(data []byte, key []byte, signatureToCompareWith []byte) bool
}

type Sha1Hash

type Sha1Hash struct {
}

func (*Sha1Hash) HashWithKey

func (s *Sha1Hash) HashWithKey(data []byte, key []byte) []byte

func (*Sha1Hash) VerifyHash

func (s *Sha1Hash) VerifyHash(data []byte, key []byte, signatureToCompareWith []byte) bool

type Sha256Hash

type Sha256Hash struct {
}

func (*Sha256Hash) HashWithKey

func (s *Sha256Hash) HashWithKey(data []byte, key []byte) []byte

func (*Sha256Hash) VerifyHash

func (s *Sha256Hash) VerifyHash(data []byte, key []byte, signatureToCompareWith []byte) bool

Jump to

Keyboard shortcuts

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