public static function generichash($message,
$key = '',
$outlen = 32
) { // This ensures that ParagonIE_Sodium_Core32_BLAKE2b::$iv is initialized
ParagonIE_Sodium_Core32_BLAKE2b::
pseudoConstructor();
$k = null;
if (!
empty($key)) { /** @var SplFixedArray $k */
$k = ParagonIE_Sodium_Core32_BLAKE2b::
stringToSplFixedArray($key);
if ($k->
count() > ParagonIE_Sodium_Core32_BLAKE2b::KEYBYTES
) { throw new RangeException('Invalid key size'
);
} } /** @var SplFixedArray $in */