Hardware-Algorithm Co-Design For Efficient And Privacy-Preserved Edge Computing