: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @throws SodiumException
protected static function onetimeauth_verify_core32(
ParagonIE_Sodium_Core32_Poly1305_State $state,
$pos = self::ftell($ifp);
$blockSize = $mlen > self::BUFFER_SIZE
$ciphertext = fread($ifp, $blockSize);
if (!is_string($ciphertext)) {
throw new SodiumException('Could not read input file');
$state->update($ciphertext);
$res = ParagonIE_Sodium_Core32_Util::verify_16($tag, $state->finish());
fseek($ifp, $pos, SEEK_SET);
* @param resource $resource
* @throws SodiumException
private static function ftell($resource)
$return = ftell($resource);
throw new SodiumException('ftell() returned false');