The document proposes a scan-protection scheme that provides testing facilities both during chip assembly and over the course of the circuit's life. It compares expected and actual test responses inside the circuit using an efficient principle to scan-in both input vectors and expected responses. This avoids needing to disconnect scan chains after manufacturing testing for security purposes. The proposed approach compares test responses within the chip at the vector level rather than providing the value of each individual scan bit. This ensures security while not relying on costly external test infrastructure. Simulation results show the proposed scheme occupies less area on the chip than existing approaches.