Statistics for Algorithm Substitution Attacks: Detecting ASAs Using State Reset and Making ASAs Asymmetric