kmac

package
v0.0.0-...-4402908 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKMAC128

func NewKMAC128(key []byte, outputLen int, domainSeparationCustomizationString []byte) hash.Hash

NewKMAC128 creates a new instance of KMAC128 which providing 128 bits of security using the given key, which must have 16 bytes or more, generating the given tagSize bytes output and using the given domainSeparationCustomizationString. The implementation is based-on sha3.NewCShake128 Note that unlike other hash implementations in the standard library, the returned Hash does not implement encoding.BinaryMarshaler or encoding.BinaryUnmarshaler.

func NewKMAC256

func NewKMAC256(key []byte, outputLen int, domainSeparationCustomizationString []byte) hash.Hash

NewKMAC256 creates a new instance of KMAC256 which providing 256 bits of security using the given key, which must have 32 bytes or more, generating the given tagSize bytes output and using the given domainSeparationCustomizationString. The implementation is based-on sha3.NewCShake256 Note that unlike other hash implementations in the standard library, the returned Hash does not implement encoding.BinaryMarshaler or encoding.BinaryUnmarshaler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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