This document presents a unified architecture for an RSA cryptosystem including key-pair generation and DPA-resistant design, implemented with reduced hardware redundancy. It details the modular architectures, methodologies for modular multiplication, exponentiation, and primality testing using the Miller-Rabin test, as well as techniques to enhance power analysis resistance. The proposed architecture has been validated through simulations using 180nm technology.