Documentation ¶
Overview ¶
Package highwayhash implements the pseudo-random-function (PRF) HighwayHash. HighwayHash is a fast hash function designed to defend hash-flooding attacks or to authenticate short-lived messages.
HighwayHash is not a general purpose cryptographic hash function and does not provide (strong) collision resistance.
Index ¶
Constants ¶
View Source
const ( // Size is the size of HighwayHash-256 checksum in bytes. Size = 32 // Size128 is the size of HighwayHash-128 checksum in bytes. Size128 = 16 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Digest ¶
type Digest struct {
// contains filtered or unexported fields
}
func New ¶
New returns a hash.Hash computing the HighwayHash-256 checksum. It returns a non-nil error if the key is not 32 bytes long.
Click to show internal directories.
Click to hide internal directories.