# US 2013/0159725 A1 · Fpga apparatus and method for protecting bitstream

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

- Number: US 2013/0159725 A1
- Document ID: US20130159725A1
- Status: Published application
- Kind: A1
- Application number: 13/454,143
- Filed: 2012-04-24
- Published: 2013-06-20
- Earliest claimed: 2011-12-14
- Assignees: Electronics and Telecommunications Research Institute
- Inventors: Bon-Seok KOO; Jeong-Seok LIM; Jae-Woo HAN; Kwang-Mo YANG; Soo-Hyeon KIM; Hyo-Won KIM; Jung-Hyung PARK; Choon-Soo KIM; E-Joong YOON
- Web page: https://patentgrep.com/patent/US20130159725A1

## CPC

- G06F 21/76: in application-specific integrated circuits [ASIC] or field-programmable devices, e.g. field-programmable gate arrays [FPGA] or programmable logic devices [PLD]
- H04L 9/3226: {using a predetermined code, e.g. password, passphrase or PIN (network architectures or network communication protocols for supporting authentication of entities using passwords in a packet data network H04L63/083)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

An FPGA apparatus and a method for protecting bitstreams are provided. The FPGA apparatus includes: a key storage unit, which is configured to be accessed only from within the FPGA, and having stored therein the encryption/decryption key and the initial key generated by the random number generator; a setting bitstream storage unit, which is an internal non-volatile memory stored with bitstreams for setting authentication and encryption/decryption; and an authentication and encryption/decryption setting unit, which is configured to call the encryption and decryption key and the initial value stored in the key storage unit to store encrypted bitstreams and authentication codes generated as a result of performing encryption on the bitstreams stored in the setting bitstream storage unit in external non-volatile memory, and verity the integrity of the encrypted bitstreams stored in the external non-volatile memory at the time of designing of the FPGA using the encrypted bitstreams.

## Claims

### Claim 1

An FPGA (field programmable gate array) apparatus for protecting bitstreams, comprising:
a random number generator configured to be disposed in the FPGA apparatus and generate an encryption/decryption key and an initial value for encryption/decryption of a bitstreams;
a key storage unit configured to be accessed only from within the FPGA apparatus, and store the encryption/decryption key and the initial key;
a setting bitstream storage unit configured to store bitstreams for setting authentication and encryption/decryption, the setting bitstream storage being an internal non-volatile memory; and
an authentication and encryption/decryption setting unit configured to call the encryption and decryption key and the initial value stored in the key storage unit to store encrypted bitstreams and authentication codes generated as a result of performing encryption on the bitstreams stored in the setting bitstream storage unit in an external non-volatile memory and verity integrity of the encrypted bitstreams stored in the external non-volatile memory at a time of designing of the FPGA apparatus using the encrypted bitstreams.

### Claim 2 (depends on 1)

The FPGA apparatus of claim 1, wherein the authentication and encryption/decryption setting unit compares a first authentication codes generated as a result of performing decryption on the encrypted bitstreams stored in the external non-volatile memory with a second authentication codes stored in the external non-volatile memory to verify the integrity of the encrypted bitstreams.

### Claim 3 (depends on 2)

The FPGA apparatus of claim 2, wherein the authentication and encryption/decryption setting unit removes the second authentication code and the encrypted bitstreams stored in the external non-volatile memory when the first authentication codes do not correspond to the second authentication codes.

### Claim 4 (depends on 2)

The FPGA apparatus of claim 2, further comprising a logic storage unit storing the decrypted bitstreams when the first authentication codes coincide with the second authentication codes,
wherein the decrypted bitstreams are used for setting a semiconductor design in the corresponding FPGA.

### Claim 5 (depends on 1)

The FPGA apparatus of claim 1, wherein the setting bitstream storage unit stores changed bitstreams.

### Claim 6 (depends on 5)

The FPGA apparatus of claim 5, wherein the authentication and encryption/decryption setting unit performs encryption on the changed bitstreams using the encryption/decryption key and the initial value again, and as a result, re-generates the authentication codes and the encrypted bitstreams.

### Claim 7 (depends on 1)

The FPGA apparatus of claim 1, wherein the authentication and encryption/decryption setting unit resets a preset authentication and encryption/decryption algorithm to an authentication and encryption/decryption algorithm input from a user.

### Claim 8 (depends on 1)

The FPGA apparatus of claim 1, wherein the key storage unit uses one of a non-volatile memory region in the FPGA apparatus and a static random access memory (SRAM) region for battery backup.

### Claim 9 (depends on 1)

The FPGA apparatus of claim 1, wherein the key storage unit is set to be accessed only by the authentication and encryption/decryption setting unit.

### Claim 10

A method for protecting bitstreams, comprising:
storing an encryption/decryption key and an initial value generated by a random number generator in an FPGA, in a memory region, the memory region accessed only from within the FPGA;
calling the encryption/decryption key and the initial value, stored at the storing the encryption/decryption key and the initial value, to perform encryption on the bitstreams, and as a result, generating authentication codes and encrypted bitstreams;
storing the authentication codes and the encrypted bitstreams in an external non-volatile memory;
performing decryption on the encrypted bitstreams stored in the external non-volatile memory at a time of designing of the FPGA using the encrypted bitstreams; and
verifying integrity of the encrypted bitstreams by comparing a first authentication codes generated as a result of performing decryption on the encrypted bitstreams stored in the external non-volatile memory with a second authentication codes stored in the external non-volatile memory.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
receiving a new authentication and encryption/decryption algorithm from a user; and
resetting an authentication and encryption/decryption algorithm preset in the FPGA to an authentication and encryption/decryption algorithm input from a user.

### Claim 12 (depends on 10)

The method of claim 10, wherein the verifying the integrity of the encrypted bitstreams, removes the second authentication codes and the encrypted bitstreams stored in the external non-volatile memory when the first authentication codes do not coincide with the second authentication codes.

### Claim 13 (depends on 10)

The method of claim 10, wherein the verifying the integrity of the encrypted bitstreams, stores the decrypted bitstreams when the first authentication codes coincide with the second authentication codes, and
the decrypted bitstreams are used for setting a semiconductor design in the corresponding FPGA.

### Claim 14 (depends on 10)

The method of claim 10, further comprising storing the changed bitstreams in an internal non-volatile memory region.

### Claim 15 (depends on 14)

The method of claim 14, further comprising performing encryption on the changed bitstreams using the encryption/decryption key and the initial value again, and as a result, re-generating the authentication codes and the encrypted bitstreams.
