protected function isTagValid($encrypted_data, $cek, $iv, $aad, $encoded_header, $authentication_tag) { return $authentication_tag === $this->calculateAuthenticationTag($encrypted_data, $cek, $iv, $aad, $encoded_header); }