wp-includes/sodium_compat/src/Core/ChaCha20/IetfCtx.php:24ParagonIE_Sodium_Core_ChaCha20_IetfCtx constructor.
$keystringoptional''$ivstringoptional''$counterstringoptional'' public function __construct($key = '', $iv = '', $counter = '') { if (self::strlen($iv) !== 12) { throw new InvalidArgumentException('ChaCha20 expects a 96-bit nonce in IETF mode.'); } $counter = $this->initCounter($counter); parent::__construct($key, self::substr($iv, 0, 8), $counter); $this->container[12] = self::load_4(self::substr($counter, 0, 4)); $this->container[13] = self::load_4(self::substr($iv, 0, 4)); $this->container[14] = self::load_4(self::substr($iv, 4, 4)); $this->container[15] = self::load_4(self::substr($iv, 8, 4)); }Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/sodium_compat/src/Core/ChaCha20/IetfCtx.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.