A High-Performance RSA Coprocessor Based on Half-Carry-Save and Dual-Core MAC Architecture