According to the invention, a circuit that is capable of automated scan
testing is disclosed. Included in the circuit are a cryptographic engine,
a digital circuit, an input pin, and an output pin. The cryptographic
engine capable of performing at least one of encryption and decryption of
one or more digital signals. The digital circuit includes combinatorial
logic and a number of memory cells. The memory cells have scan inputs
connected serially in a scan chain. The input pin and output pin are
coupled to the scan chain. At least one of the input pin and the output
pin carries at least some cipher text data of the scan chain.