Shared SipHash state (v0..v3) with its round, compression, and finalization primitives. Internal building block, only meant to be composed by the hasher classes below.

Synopsis

Declared in <crypto/siphash.h>

class SipHashState;

Member Functions

Name

Description

SipHashState [constructor]

Construct a SipHashState initialized with the specified key.

Compress1

Mutably compress one block into this state, with 1 SipRound.

Compress1Jumbo

Mutably compress one jumbo block into this state, with 1 SipRound.

Compress2

Mutably compress one block into this state, with 2 SipRounds.

Copy

Construct a copy of this state.

Finalize3U

Mutably finalize this state with 3 SipRounds using the unpadded finalizer, and return the resulting hash.

Finalize4

Mutably finalize this state with 4 SipRounds, and return the resulting hash.

Created with MrDocs