# US 2009/0262940 A1 · Memory controller and memory device including the memory controller

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

- Number: US 2009/0262940 A1
- Document ID: US20090262940A1
- Status: Published application
- Kind: A1
- Application number: 12/391,521
- Filed: 2009-02-24
- Published: 2009-10-22
- Earliest claimed: 2008-02-29
- Assignees: Samsung Electronics Co., Ltd.
- Inventors: Min-soo Lim
- Web page: https://patentgrep.com/patent/US20090262940A1

## CPC

- G06F 21/78: to assure secure storage of data (address-based protection against unauthorised use of memory G06F12/14; record carriers for use with machines and with at least a part designed to carry digital markings G06K19/00)
- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 21/575: {Secure boot}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory controller includes a security key and parameter storage unit and a security engine. The security key and parameter storage unit stores at least one security key and at least one parameter that are used during encryption or decryption. The security engine receives encrypted data stored in an external boot memory, decrypts the received encrypted data by using the security key and the parameter, and outputs the decrypted data to a central processing unit (CPU), in a security operation mode.

## Claims

### Claim 1

A memory controller comprising:
a security key and parameter storage unit storing at least one security key and at least one parameter that are used during encryption or decryption; and
a security engine receiving encrypted data stored in an external boot memory, the security engine configured to decrypt the received encrypted data by using the at least one security key and the at least one parameter, and output the decrypted data to a central processing unit (CPU).

### Claim 2 (depends on 1)

The memory controller of claim 1, wherein the security key and parameter storage unit selects a specific security key and a specific parameter and outputs the selected security key and parameter to the security engine in response to a control signal of the CPU.

### Claim 3 (depends on 1)

The memory controller of claim 1, wherein in the security operation mode, the security engine encrypts data transmitted from the CPU by using the selected security key and parameter, and outputs the encrypted data to the external boot memory.

### Claim 4 (depends on 1)

The memory controller of claim 1, further comprising a memory interface which performs data transmission and reception together with the external boot memory.

### Claim 5 (depends on 1)

The memory controller of claim 1, further comprising a bus interface which performs data transmission and reception together with the CPU.

### Claim 6 (depends on 1)

The memory controller of claim 1, wherein in modes other than the security operation mode, the security engine receives unencrypted data stored in the external boot memory and transmits the unencrypted data to the CPU.

### Claim 7 (depends on 3)

The memory controller of claim 3, wherein in modes other than the security operation mode, the security engine transmits unencrypted data transmitted from the CPU and transmits the unencrypted data to the external boot memory.

### Claim 8 (depends on 1)

The memory controller of claim 1, further comprising an internal boot memory temporarily storing the decrypted data and outputting stored data in units of a data size required by the CPU.

### Claim 9 (depends on 1)

The memory controller of claim 1, wherein the security key and parameter storage unit stores a plurality of security keys which are different according to booting purposes or application programs to be executed, and a plurality of parameters which are different according to the booting purposes or the application programs to be executed.

### Claim 10 (depends on 1)

The memory controller of claim 1, wherein the security key and parameter storage unit stores the security keys and the parameters by using an electric fuse.

### Claim 11 (depends on 1)

The memory controller of claim 1, wherein the security key and parameter storage unit is a programmable non-volatile memory device.

### Claim 12 (depends on 1)

The memory controller of claim 1, wherein the security engine comprises:
an encryption module configured to encrypt data transmitted from the CPU; and
a decryption module configured to decrypt the encrypted data transmitted from the external boot memory.

### Claim 13 (depends on 12)

The memory controller of claim 12, wherein the security engine determines whether to perform the encryption or the decryption in response to control signal from the CPU.

### Claim 14

A memory device comprising:
an external boot memory configured to separately store one of encrypted data and an encrypted boot code and one of unencrypted data and an unencrypted boot code; and
a memory controller configured to receive the encrypted data or boot code stored in the external boot memory, decrypt the received encrypted data or boot code by using an internally stored security key and an internally stored parameter, and output the decrypted data to a CPU, in a security operation mode.

### Claim 15 (depends on 1)

The memory device of claim 1, wherein the external boot memory comprises:
a secure area storing the encrypted data or boot code; and
a non-secure area storing the unencrypted data or boot code.

### Claim 16 (depends on 14)

The memory device of claim 14, wherein the memory controller comprises:
a security key and parameter storage unit storing at least one security key and at least one parameter that are used during encryption or decryption; and
a security engine receiving the encrypted data or boot code stored in the external boot memory, decrypting the received encrypted data or boot code by using the at least one security key and the at least one parameter, and outputting the decrypted data or boot code to the CPU, in the security operation mode.

### Claim 17 (depends on 16)

The memory device of claim 16, wherein in the security operation mode, the security engine encrypts data transmitted from the CPU by using the at least one security key and the at least one parameter, and outputs the encrypted data to the external boot memory.

### Claim 18

A memory device comprising:
a storage unit storing a plurality of security keys and parameters, each parameter corresponding to one of a plurality of programs, wherein the storage unit is configured to select one of the plurality of parameters in response to a control signal, and to select one of the plurality of security keys in response to the selected parameter;
a security engine that is configured to decrypt boot code of a program stored in an external boot memory that corresponds to the selected parameter using the selected security key for output to a central processing unit (CPU).

### Claim 19 (depends on 18)

The memory device of claim 18, wherein the security engine is further configured to encrypt replacement boot code from the CPU using the selected security key and to replace the boot code of the program stored in the external boot memory that corresponds to the selected parameter using the encrypted replacement boot code.

### Claim 20 (depends on 19)

The memory device of claim 19, wherein the security engine is further configured to pass the boot code between the CPU and the external boot memory without encryption or decryption.
