Package com.scurrilous.circe.params
Class SipHash24Parameters
- java.lang.Object
-
- com.scurrilous.circe.params.SipHash24Parameters
-
- All Implemented Interfaces:
HashParameters
public final class SipHash24Parameters extends java.lang.Object implements HashParameters
Hash parameters for SipHash-2-4.
-
-
Constructor Summary
Constructors Constructor Description SipHash24Parameters()Constructs aSipHash24Parameterswith the default seed,00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F.SipHash24Parameters(long seedLow, long seedHigh)Constructs aSipHash24Parameterswith the given seed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringalgorithm()Returns the canonical name of the hash algorithm.longseedHigh()Returns the high-order 64 bits of the seed.longseedLow()Returns the low-order 64 bits of the seed.
-
-
-
Constructor Detail
-
SipHash24Parameters
public SipHash24Parameters()
Constructs aSipHash24Parameterswith the default seed,00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F.
-
SipHash24Parameters
public SipHash24Parameters(long seedLow, long seedHigh)Constructs aSipHash24Parameterswith the given seed.- Parameters:
seedLow- the low-order 64 bits of the seedseedHigh- the high-order 64 bits of the seed
-
-
Method Detail
-
seedLow
public long seedLow()
Returns the low-order 64 bits of the seed.- Returns:
- low-order bits of seed
-
seedHigh
public long seedHigh()
Returns the high-order 64 bits of the seed.- Returns:
- high-order bits of seed
-
algorithm
public java.lang.String algorithm()
Description copied from interface:HashParametersReturns the canonical name of the hash algorithm.- Specified by:
algorithmin interfaceHashParameters- Returns:
- the name of the hash algorithm
-
-