[][src]Crate rigel

Structs

HmacSha512

Struct for using HMAC with streaming messages.

Constants

HLEN

The output size for the hash function SHA512.

SHA2_BLOCKSIZE

The blocksize for the hash function SHA512.

Functions

hmac_sha512

HMAC-SHA512 one-shot function. Returns a MAC.

init

Initialize HmacSha512 struct with a given key, for use with streaming messages.

verify

Verify a HMAC-SHA512 MAC in constant time.

Type Definitions

MacArray

Type for a MAC-sized (HLEN) array.

PadArray

Type for an array of length SHA2_BLOCKSIZE.