1. A hardware-based method for preventing side channel attacks, comprising: receiving a request for a cryptographic function; decomposing the requested cryptographic function into a sequence of hardware operations, wherein the sequence of hardware operations includes a conditional operation and an unconditional operation; performing a dummy operation for each conditional operation in the sequence of hardware operations; performing the unconditional operation for each unconditional operation in the sequence of hardware operations; and generating an output for the cryptographic function, wherein the output is based on the unconditional operation in the sequence of hardware operations.