public function ParagonIE_Sodium_Core_Poly1305_State::__destruct in Automatic Updates 7
Same name and namespace in other branches
- 8 vendor/paragonie/sodium_compat/src/Core/Poly1305/State.php \ParagonIE_Sodium_Core_Poly1305_State::__destruct()
Zero internal buffer upon destruction
File
- vendor/
paragonie/ sodium_compat/ src/ Core/ Poly1305/ State.php, line 85
Class
- ParagonIE_Sodium_Core_Poly1305_State
- Class ParagonIE_Sodium_Core_Poly1305_State
Code
public function __destruct() {
$this->r[0] ^= $this->r[0];
$this->r[1] ^= $this->r[1];
$this->r[2] ^= $this->r[2];
$this->r[3] ^= $this->r[3];
$this->r[4] ^= $this->r[4];
$this->h[0] ^= $this->h[0];
$this->h[1] ^= $this->h[1];
$this->h[2] ^= $this->h[2];
$this->h[3] ^= $this->h[3];
$this->h[4] ^= $this->h[4];
$this->pad[0] ^= $this->pad[0];
$this->pad[1] ^= $this->pad[1];
$this->pad[2] ^= $this->pad[2];
$this->pad[3] ^= $this->pad[3];
$this->leftover = 0;
$this->final = true;
}