Design Methodology for Differential Power Analysis Resistant Circuits