public class SipHashInline
extends java.lang.Object
To know details about SipHash, see; "a fast short-input PRF" https://www.131002.net/siphash/
SIPROUND is defined in siphash24.c that can be downloaded from the above site. Following license notice is subject to change based on the licensing policy of siphash24.c.
| Constructor and Description |
|---|
SipHashInline() |
| Modifier and Type | Method and Description |
|---|---|
static long[] |
getKey(byte[] key)
Get key long [ ].
|
static long |
hash24_palindromic(byte[] key,
byte[] data)
Hash 24 palindromic long.
|
static long |
hash24_palindromic(byte[] key,
byte[] data,
int offset,
int len)
Hash 24 palindromic long.
|
static long |
hash24_palindromic(long k0,
long k1,
byte[] data)
Hash 24 palindromic long.
|
static long |
hash24_palindromic(long k0,
long k1,
byte[] data,
int offset,
int len)
Version of SipHash which computes the hash of the input concatenated with the
reversed input in order to minimize the risk of collisions (for a collision to be
an actual value, it must have the same structure as the original input, i.e.
|
static long |
hash24(byte[] key,
byte[] data)
Hash 24 long.
|
static long |
hash24(byte[] key,
byte[] data,
int offset,
int len)
Hash 24 long.
|
static long |
hash24(byte[] key,
byte[] data,
int offset,
int len,
boolean reversed)
Hash 24 long.
|
static long |
hash24(long k0,
long k1,
byte[] data,
int offset,
int len)
Hash 24 long.
|
static long |
hash24(long k0,
long k1,
byte[] data,
int offset,
int len,
boolean reversed)
Hash 24 long.
|
public static long hash24(byte[] key,
byte[] data,
int offset,
int len)
key - the keydata - the dataoffset - the offsetlen - the lenpublic static long hash24(byte[] key,
byte[] data,
int offset,
int len,
boolean reversed)
key - the keydata - the dataoffset - the offsetlen - the lenreversed - the reversedpublic static long hash24(byte[] key,
byte[] data)
key - the keydata - the datapublic static long hash24(long k0,
long k1,
byte[] data,
int offset,
int len)
k0 - the k 0k1 - the k 1data - the dataoffset - the offsetlen - the lenpublic static long hash24(long k0,
long k1,
byte[] data,
int offset,
int len,
boolean reversed)
k0 - the k 0k1 - the k 1data - the dataoffset - the offsetlen - the lenreversed - the reversedpublic static long hash24_palindromic(long k0,
long k1,
byte[] data,
int offset,
int len)
k0 - the k 0k1 - the k 1data - the dataoffset - the offsetlen - the lenpublic static long hash24_palindromic(byte[] key,
byte[] data,
int offset,
int len)
key - the keydata - the dataoffset - the offsetlen - the lenpublic static long hash24_palindromic(long k0,
long k1,
byte[] data)
k0 - the k 0k1 - the k 1data - the datapublic static long hash24_palindromic(byte[] key,
byte[] data)
key - the keydata - the datapublic static long[] getKey(byte[] key)
key - the key