Vulnerability Assessment And Privacy-Preserving Computations In Smart Grid