I am trying to prove that for positive integers s and t and u is a vector, if diag $(suu^T)\equiv$ diag$(tuu^T)\pmod n$ then $suu^T\equiv tuu^T\pmod n$. So what I was trying to prove is
If for all i, $su_i^2\equiv tu_i^2\pmod n$, then $su_iu_j\equiv tu_iu_j\pmod n$.