Documentation ¶
Index ¶
- func MD4Mac(key, data []byte) []byte
- func MD4MacExtension(blackBox func() ([]byte, []byte), blackBoxVerify func([]byte, []byte) bool, ...) ([]byte, []byte, error)
- func MD4Padding(l int) []byte
- func MD4Verify(key, data, verify []byte) bool
- func MD5Mac(key, data []byte) []byte
- func MD5MacExtension(blackBox func() ([]byte, []byte), blackBoxVerify func([]byte, []byte) bool, ...) ([]byte, []byte, uint64, error)
- func MD5Padding(l uint64) []byte
- func MD5Verify(key, data, verify []byte) bool
- func SHA1HMAC(key, data []byte) []byte
- func SHA1Mac(key, data []byte) []byte
- func SHA1MacExtension(blackBox func() ([]byte, []byte), blackBoxVerify func([]byte, []byte) bool, ...) ([]byte, []byte, error)
- func SHA1Padding(l int) []byte
- func SHA1Verify(key, data, verify []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MD4MacExtension ¶
func MD4Padding ¶
func MD5MacExtension ¶
func MD5Padding ¶
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 ¶
SHA1Padding returns the padding for an input of length l
func SHA1Verify ¶
SHA1Verify verifies a MAC using prefix keyed SHA1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.