Documentation ¶
Overview ¶
Package hmacsha512 contains an inlined an optimized version of hmac+sha512. Unfortunately, this requires exposing some of the details from crypto/sha512.
Index ¶
Constants ¶
View Source
const BlockSize = 128
BlockSize is the block size of SHA-512 hash function.
View Source
const Size = 64
Size is the size of SHA-512 checksum in bytes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Partial ¶
type Partial struct {
// contains filtered or unexported fields
}
Partial is an in-progress HMAC calculation.
func New ¶
New creates a new HMAC-SHA512 calculator. It only supports keys that are smaller than sha512.BlockSize.
func (*Partial) SumAndReset ¶
SumAndReset calculates the sum so far and resets the state.
Click to show internal directories.
Click to hide internal directories.