return (string) $func($ctx,
$length);
} if ($length < 1
) { try { self::
memzero($ctx);
} catch (SodiumException
$ex) { unset($ctx);
} return '';
} if (PHP_INT_SIZE === 4
) { $result = ParagonIE_Sodium_Crypto32::
generichash_final($ctx,
$length);
} else { $result = ParagonIE_Sodium_Crypto::
generichash_final($ctx,
$length);
} try { self::
memzero($ctx);
} catch (SodiumException
$ex) { unset($ctx);
} return $result;
}