ParagonIE_Sodium_Core_Poly1305_State::__destruct

Advertisement

Summery Summery

Zero internal buffer upon destruction

Syntax Syntax

ParagonIE_Sodium_Core_Poly1305_State::__destruct()

Source Source

File: wp-includes/sodium_compat/src/Core/Poly1305/State.php

    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;
    }

Advertisement

Advertisement

Leave a Reply