public static interface ShortHash.Native
| Modifier and Type | Method and Description |
|---|---|
boolean |
cryptoShortHash(byte[] out,
byte[] in,
long inLen,
byte[] key)
Short-input hash some text.
|
void |
cryptoShortHashKeygen(byte[] k)
Output a 64-bit key.
|
boolean cryptoShortHash(byte[] out,
byte[] in,
long inLen,
byte[] key)
out - The hashed text of size ShortHash.SIPHASH24_BYTES or
ShortHash.SIPHASHX24_BYTES depending on in size.in - The short-input text to hash of size ShortHash.BYTES or of size ShortHash.SIPHASHX24_BYTES.inLen - The length of the short-input.key - The key generated via cryptoShortHashKeygen(byte[]).void cryptoShortHashKeygen(byte[] k)
k - The key of size ShortHash.SIPHASH24_KEYBYTES.