FPGA-based implementation of a serial RSA processor