Interface GenericHash.Lazy

    • Method Detail

      • cryptoGenericHashKeygen

        Key cryptoGenericHashKeygen()
        Generate a hashing key.
        Returns:
        A hashing key.
      • cryptoGenericHash

        java.lang.String cryptoGenericHash​(java.lang.String in)
                                    throws SodiumException
        Hash a string without a key.
        Parameters:
        in - The string to hash.
        Returns:
        The hashed string.
        Throws:
        SodiumException
      • cryptoGenericHashInit

        boolean cryptoGenericHashInit​(byte[] state,
                                      Key key,
                                      int outLen)
        Initialise a multi-part hashing operation.
        Parameters:
        state - The state which holds the key and operation.
        key - The key as generated by cryptoGenericHashKeygen().
        outLen - The size of the final hash.
        Returns:
        True if initialised.