WordPress at a glance
function is not described

ParagonIE_Sodium_Core_SecretStream_State::xorNonce() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Core_SecretStream_State{}

No Hooks.

Return

self. Null. Nothing.

Usage

$ParagonIE_Sodium_Core_SecretStream_State = new ParagonIE_Sodium_Core_SecretStream_State();
$ParagonIE_Sodium_Core_SecretStream_State->xorNonce( $str );
$str(string) (required)
-

Code of ParagonIE_Sodium_Core_SecretStream_State::xorNonce() WP 5.7

<?php
public function xorNonce($str)
{
    $this->nonce = ParagonIE_Sodium_Core_Util::xorStrings(
        $this->getNonce(),
        str_pad(
            ParagonIE_Sodium_Core_Util::substr($str, 0, 8),
            12,
            "\0",
            STR_PAD_RIGHT
        )
    );
    return $this;
}