Statistics in side channel analysis: modeling, metric, leakage detection testing.