# US 2021/0083868 A1 · Dynamic secret key security system for test circuit and method of the same

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0083868 A1
- Document ID: US20210083868A1
- Status: Published application
- Kind: A1
- Application number: 16/572,787
- Filed: 2019-09-17
- Published: 2021-03-18
- Earliest claimed: 2019-09-17
- Assignees: National Cheng Kung University
- Applicants: National Cheng Kung University
- Inventors: KUEN-JONG LEE; CHIA-CHI WU; MAN-HSUAN KUO
- Web page: https://patentgrep.com/patent/US20210083868A1

## CPC

- H04L 9/0861: {Generation of secret information including derivation or calculation of cryptographic keys or passwords}
- H04L 9/14: using a plurality of keys or algorithms
- G01R 31/3177: Testing of logic operation, e.g. by logic analysers
- G01R 31/318588: {Security aspects}
- G06F 9/30134: {Register stacks; shift registers}
- H04L 9/003: {for power analysis, e.g. differential power analysis [DPA] or simple power analysis [SPA]}
- H04L 9/088: {Usage controlling of secret information, e.g. techniques for restricting cryptographic keys to pre-authorized uses, different access levels, validity of crypto-period, different key- or password length, or different strong and weak cryptographic algorithms (network architectures or network communication protocols for using time-dependent keys in a packet data network H04L63/068)}
- H04L 2209/26: Testing cryptographic entity, e.g. testing integrity of encryption key or encryption algorithm
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A dynamic secret key security system for test circuit and a method of the same are disclosed. The security architecture includes a scan chain set, a dynamic key generator, a secret key checking logic, a fake response generator, and a controller. Scan chains of the scan chain set receive a test vector while the dynamic key generator produces different secret keys according to the test vector received. The secret key checking logic is used for comparing the test vector with the secret key so as to know whether they are the same. Thus whether the test vector being input is legal can be learned. Thereby the present dynamic secret key generation technique provides higher security level. Moreover, the secret key will not be stored in the memory in advance so that attackers cannot get the secret key through attacks on the memory.

## Claims

### Claim 1

A dynamic secret key security system for test circuit comprising:
a scan chain set having a plurality of scan chains each of which includes a scan output disposed on one end thereof and a scan input that is arranged at the other end thereof and used for receiving a test vector as inputs;
a dynamic key generator electrically connected to the scan chain set and used for receiving the test vector from the scan input;
a secret key checking logic electrically connected to the dynamic key generator and the scan chain set;
a fake response generator electrically connected to the dynamic key generator and the secret key checking logic; and
a controller electrically connected to the dynamic key generator, the secret key checking logic and the fake response generator, wherein the fake response generator electrically connected to the secret key checking logic through the controller.

### Claim 2 (depends on 1)

The system as claimed in claim 1, wherein the scan input of the scan chain of the scan chain set is selectively electrically connected to an output of an input decompressor while the scan output of the scan chain of the scan chain set is selectively electrically connected to an input of an output compressor.

### Claim 3 (depends on 1)

The system as claimed in claim 1, wherein the scan chains are composed of a plurality of flip-flops that are connected in series and having a plurality of key flip-flops (KFFs) able to be selected randomly.

### Claim 4 (depends on 1)

The system as claimed in claim 1, wherein the dynamic key generator includes a modified-linear feedback shift register (modified-LFSR) and a trigger logic electrically connected to the modified-LFSR.

### Claim 5 (depends on 1)

The system as claimed in claim 1, wherein the secret key checking logic includes a plurality of XNOR (Exclusive NOR) gates, an AND gate electrically connected to the XNOR gates; and a D flip-flop electrically connected to the AND gate.

### Claim 6 (depends on 1)

The system as claimed in claim 1, wherein the fake response generator includes a counter electrically connected to the dynamic key generator, a multiplexer electrically connected to both the counter and the scan chain set, and an XOR gate electrically connected to the multiplexer and the dynamic key generator.

### Claim 7

A dynamic secret key security method for test circuit comprising the steps of:
Step 1: selecting a plurality of key flip-flops (KFFs) from a plurality of scan chains of a scan chain set;
Step 2: inputting a seed of a test vector into both the scan chains of the scan chain set and a dynamic key generator while the test vector is applied to the scan chains;
Step 3: inputting the test vector into the scan chains in turn; then generating a secret key by the dynamic key generator and sending a comparison signal to a secret key checking logic by a controller after the test vector being completely input into the scan chains; and
Step 4: comparing the test vector in the KFFs with the secret key from the dynamic key generator by the secret key checking logic and outputting a correct response when the test vector and the secret key from the dynamic key generator are the same; If the test vector and the secret key are not identical, outputting a fake response by a fake response generator.

### Claim 8 (depends on 7)

The method as claimed in claim 7, wherein the scan chain set further includes a scan input, a scan output, a decompressor selectively electrically connected to the scan input and a compressor selectively electrically connected to the scan chains and the scan output.

### Claim 9 (depends on 7)

The method as claimed in claim 7, wherein the dynamic key generator includes a modified-linear feedback shift register (LFSR) and a trigger logic electrically connected to the modified-LFSR; the trigger logic is used to alter the contents of the modified-LFSR when specific logic values appear at the inputs of the scan chains, which are also the inputs to the trigger logic.

### Claim 10 (depends on 7)

The method as claimed in claim 7, wherein the secret key checking logic includes a plurality of XNOR (Exclusive NOR) gates, an AND gate electrically connected to the XNOR gates, and a D flip-flop electrically connected to the AND gate.

### Claim 11 (depends on 7)

The method as claimed in claim 7, wherein the fake response generator includes a counter electrically connected to the dynamic key generator, a multiplexer electrically connected to both the counter and the scan chain set, and an XNOR gate electrically connected to the multiplexer and the dynamic key generator.
