hashfunctions

package
v0.0.0-...-8895046 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MD4Mac

func MD4Mac(key, data []byte) []byte

func MD4MacExtension

func MD4MacExtension(blackBox func() ([]byte, []byte), blackBoxVerify func([]byte, []byte) bool, addition []byte) ([]byte, []byte, error)

func MD4Padding

func MD4Padding(l int) []byte

func MD4Verify

func MD4Verify(key, data, verify []byte) bool

func MD5Mac

func MD5Mac(key, data []byte) []byte

func MD5MacExtension

func MD5MacExtension(blackBox func() ([]byte, []byte), blackBoxVerify func([]byte, []byte) bool, addition []byte, prefixLen uint64) ([]byte, []byte, uint64, error)

func MD5Padding

func MD5Padding(l uint64) []byte

func MD5Verify

func MD5Verify(key, data, verify []byte) bool

func SHA1HMAC

func SHA1HMAC(key, data []byte) []byte

func SHA1Mac

func SHA1Mac(key, data []byte) []byte

SHA1Mac returns a MAC using prefix keyed SHA1

func SHA1MacExtension

func SHA1MacExtension(blackBox func() ([]byte, []byte), blackBoxVerify func([]byte, []byte) bool, addition []byte) ([]byte, []byte, error)

SHA1MacExtension returns a forged mac and forged message with user chosen additional content, given some blackBox function which returns a mac and message, and some blackBoxVerify function that can verify a mac and message.

func SHA1Padding

func SHA1Padding(l int) []byte

SHA1Padding returns the padding for an input of length l

func SHA1Verify

func SHA1Verify(key, data, verify []byte) bool

SHA1Verify verifies a MAC using prefix keyed SHA1

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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