C# Класс Org.BouncyCastle.Crypto.Macs.SipHash

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).
"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..."
Наследование: IMac
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
buf byte[]
bufPos int
c int
k0 long
v0 long
wordCount int

Открытые методы

Метод Описание
BlockUpdate ( byte input, int offset, int length ) : void
DoFinal ( byte output, int outOff ) : int
DoFinal ( ) : long
GetMacSize ( ) : int
Init ( ICipherParameters parameters ) : void
Reset ( ) : void
SipHash ( ) : System

SipHash-2-4

SipHash ( int c, int d ) : System

SipHash-c-d

Update ( byte input ) : void

Защищенные методы

Метод Описание
ApplySipRounds ( int n ) : void
ProcessMessageWord ( ) : void
RotateLeft ( long x, int n ) : long

Описание методов

ApplySipRounds() защищенный Метод

protected ApplySipRounds ( int n ) : void
n int
Результат void

BlockUpdate() публичный Метод

public BlockUpdate ( byte input, int offset, int length ) : void
input byte
offset int
length int
Результат void

DoFinal() публичный Метод

public DoFinal ( byte output, int outOff ) : int
output byte
outOff int
Результат int

DoFinal() публичный Метод

public DoFinal ( ) : long
Результат long

GetMacSize() публичный Метод

public GetMacSize ( ) : int
Результат int

Init() публичный Метод

public Init ( ICipherParameters parameters ) : void
parameters ICipherParameters
Результат void

ProcessMessageWord() защищенный Метод

protected ProcessMessageWord ( ) : void
Результат void

Reset() публичный Метод

public Reset ( ) : void
Результат void

RotateLeft() защищенный статический Метод

protected static RotateLeft ( long x, int n ) : long
x long
n int
Результат long

SipHash() публичный Метод

SipHash-2-4
public SipHash ( ) : System
Результат System

SipHash() публичный Метод

SipHash-c-d
public SipHash ( int c, int d ) : System
c int the number of compression rounds
d int the number of finalization rounds
Результат System

Update() публичный Метод

public Update ( byte input ) : void
input byte
Результат void

Описание свойств

buf защищенное свойство

protected byte[] buf
Результат byte[]

bufPos защищенное свойство

protected int bufPos
Результат int

c защищенное свойство

protected int c
Результат int

k0 защищенное свойство

protected long k0
Результат long

v0 защищенное свойство

protected long v0
Результат long

wordCount защищенное свойство

protected int wordCount
Результат int