You are here

public function ParagonIE_Sodium_Core32_SecretStream_State::counterReset 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::counterReset()

Return value

self

File

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

Class

ParagonIE_Sodium_Core32_SecretStream_State
Class ParagonIE_Sodium_Core32_SecretStream_State

Code

public function counterReset() {
  $this->counter = 1;
  $this->_pad = str_repeat("\0", 4);
  return $this;
}