Hardware Security: A Comprehensive Study Of Counteracting Side-Channel Attacks, Sat Attacks, Reverse Engineering, And Hardware Trojans