You are here

public function ParagonIE_Sodium_Core32_SecretStream_State::getCombinedNonce in Automatic Updates 8

Same name and namespace in other branches
  1. 7 vendor/paragonie/sodium_compat/src/Core32/SecretStream/State.php \ParagonIE_Sodium_Core32_SecretStream_State::getCombinedNonce()

Return value

string

File

vendor/paragonie/sodium_compat/src/Core32/SecretStream/State.php, line 79

Class

ParagonIE_Sodium_Core32_SecretStream_State
Class ParagonIE_Sodium_Core32_SecretStream_State

Code

public function getCombinedNonce() {
  return $this
    ->getCounter() . ParagonIE_Sodium_Core32_Util::substr($this
    ->getNonce(), 0, 8);
}