Package 

Interface ShortHash.Native

    • Method Summary

      Modifier and Type Method Description
      abstract boolean cryptoShortHash(Array<byte> out, Array<byte> in, int inLen, Array<byte> key) Short-input hash some text.
      abstract void cryptoShortHashKeygen(Array<byte> k) Output a 64-bit key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • cryptoShortHash

         abstract boolean cryptoShortHash(Array<byte> out, Array<byte> in, int inLen, Array<byte> key)

        Short-input hash some text.

        Parameters:
        out - The hashed text of size SIPHASH24_BYTES orSIPHASHX24_BYTES depending on {@code in} size.
        in - The short-input text to hash of size BYTES or of size SIPHASHX24_BYTES.
        inLen - The length of the short-input.
        key - The key generated via cryptoShortHashKeygen.
      • cryptoShortHashKeygen

         abstract void cryptoShortHashKeygen(Array<byte> k)

        Output a 64-bit key.

        Parameters:
        k - The key of size SIPHASH24_KEYBYTES.