Bdd Based Synthesis Flow For Design Of Dpa Resistant Cryptographic Circuits