Interface ShortHash.Native
- All Known Implementing Classes:
LazySodium,LazySodiumJava
- Enclosing interface:
- ShortHash
public static interface ShortHash.Native
-
Method Summary
Modifier and TypeMethodDescriptionbooleancryptoShortHash(byte[] out, byte[] in, long inLen, byte[] key) Short-input hash some text.voidcryptoShortHashKeygen(byte[] k) Output a 64-bit key.
-
Method Details
-
cryptoShortHash
boolean cryptoShortHash(byte[] out, byte[] in, long inLen, byte[] key) Short-input hash some text.- Parameters:
out- The hashed text of sizeShortHash.SIPHASH24_BYTESorShortHash.SIPHASHX24_BYTESdepending oninsize.in- The short-input text to hash of sizeShortHash.BYTESor of sizeShortHash.SIPHASHX24_BYTES.inLen- The length of the short-input.key- The key generated viacryptoShortHashKeygen(byte[]).- Returns:
- true if success, false if fail.
-
cryptoShortHashKeygen
void cryptoShortHashKeygen(byte[] k) Output a 64-bit key.- Parameters:
k- The key of sizeShortHash.SIPHASH24_KEYBYTES.
-