Secure Software/Hardware Hybrid In-Field Testing for System-on-Chip (Full Report)