sodium_crypto_generichash_init

The timeline below displays how wordpress function sodium_crypto_generichash_init has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * @see ParagonIE_Sodium_Compat::crypto_generichash_init()
 * @param string|null $key
 * @param int $length
 * @return string
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_crypto_generichash_init($key = null, $length = 32)
{
    return ParagonIE_Sodium_Compat::crypto_generichash_init($key, $length);
}

WordPress Version: 5.2

/**
 * @see ParagonIE_Sodium_Compat::crypto_generichash_init()
 * @param string|null $key
 * @param int $outLen
 * @return string
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_crypto_generichash_init($key = null, $outLen = 32)
{
    return ParagonIE_Sodium_Compat::crypto_generichash_init($key, $outLen);
}