You are here

public static function ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull in Automatic Updates 7

Same name and namespace in other branches
  1. 8 vendor/paragonie/sodium_compat/src/Compat.php \ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull()

Parameters

string $state:

string $msg:

string $aad:

Return value

bool|array{0: string, 1: int}

Throws

SodiumException

1 call to ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull()
php72compat.php in vendor/paragonie/sodium_compat/lib/php72compat.php

File

vendor/paragonie/sodium_compat/src/Compat.php, line 2469

Class

ParagonIE_Sodium_Compat

Code

public static function crypto_secretstream_xchacha20poly1305_pull(&$state, $msg, $aad = '') {
  if (PHP_INT_SIZE === 4) {
    return ParagonIE_Sodium_Crypto32::secretstream_xchacha20poly1305_pull($state, $msg, $aad);
  }
  return ParagonIE_Sodium_Crypto::secretstream_xchacha20poly1305_pull($state, $msg, $aad);
}