SipHash Class

Implementation of SipHash as specified in "SipHash: a fast short-input PRF", by Jean-Philippe Aumasson and Daniel J. Bernstein (https://131002.net/siphash/siphash.pdf).

Definition

Namespace: Org.BouncyCastle.Crypto.Macs
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public class SipHash : IMac
Inheritance
Object    SipHash
Implements
IMac

Remarks

"SipHash is a family of PRFs SipHash-c-d where the integer parameters c and d are the number of compression rounds and the number of finalization rounds. A compression round is identical to a finalization round and this round function is called SipRound. Given a 128-bit key k and a (possibly empty) byte string m, SipHash-c-d returns a 64-bit value..."

Constructors

SipHashSipHash-2-4
SipHash(Int32, Int32)SipHash-c-d

Properties

Methods

ApplySipRounds 
BlockUpdate(ReadOnlySpanByte) 
BlockUpdate(Byte, Int32, Int32) 
DoFinal 
DoFinal(SpanByte) 
DoFinal(Byte, Int32) 
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetMacSize 
GetTypeGets the Type of the current instance.
(Inherited from Object)
Init 
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ProcessMessageWord 
Reset 
RotateLeft 
ToStringReturns a string that represents the current object.
(Inherited from Object)
Update 

Fields

c 
d 
k0 
k1 
m 
v0 
v1 
v2 
v3 
wordCount 
wordPos 

See Also