Non-copyable function application in memory

By using physically non-copyable function (PUF) circuit in memory devices to generate unique keys and IDs, the problem of insufficient security in key management in IoT devices is solved, and the unpredictable and replicated keys and IDs are realized, improving memory Safety of the device.

CN114444140BActive Publication Date: 2024-11-08MACRONIX INTERNATIONAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110563900.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-11-02
Filing Date
2021-05-24
Publication Date
2024-11-08
Estimated Expiration
2041-05-24

AI Technical Summary

Technical Problem

The prior art is difficult to effectively manage and protect unique keys and IDs used in IoT devices, especially in non-volatile memory, where there is a problem of insufficient security in the generation, update and storage of keys.

Method used

A physically non-copyable function (PUF) circuit is used to generate a unique random key and chip ID, and the data on the data path is encoded through logical circuits, and the hardware-inherent security technology is realized using PUF code to ensure the security of the key and ID.

Benefits of technology

A unique key and ID that are difficult to predict and copy are realized, which enhances the security of the memory device, and even if the manufacturing program is aware of it, it is impossible to repeat or generate prediction codes, improving data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114444140B_ABST
    Figure CN114444140B_ABST
Patent Text Reader

Abstract

The present invention discloses a memory device, comprising: a memory cell array; a physically unclonable function circuit, arranged in the memory device, the physically unclonable function circuit being used to generate a physically unclonable function code; a data path, connecting a first circuit to a second circuit, the data path being arranged in the memory device and coupled to the memory cell array; and a logic circuit, being used to encode data on the data path from the first circuit using the physically unclonable function code to generate encoded data and provide the encoded data to the second circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to integrated circuits including flash memory or other non-volatile memory having an application of physically non-copyable functions. Background Art

[0002] Integrated circuit memory devices with extremely high capacity have been developed, including non-volatile memory such as flash memory. Some technologies are believed to have the potential to achieve megabit-scale arrays on integrated circuits. In addition, memory devices are deployed in so-called "Internet of Things IoT" devices interconnected by networks operating, for example, Internet Protocol communication technologies. One concern for IoT devices and other devices that store data is data security. Therefore, security protocols that require encryption by unique keys, authentication by unique IDs, and challenge / response techniques have been deployed.

[0003] Security protocols require key management technologies to generate, update, store and protect the unique keys and IDs utilized.

[0004] There is a need for techniques to provide integrated circuits that include non-volatile memory with information that is permanently stored in, retrieved from, and / or used by these integrated circuits. Summary of the invention

[0005] A memory device includes: a memory cell array; a physical unclonable function circuit, which is arranged in the memory device, and the physical unclonable function circuit is used to generate a physical unclonable function code; a data path, connecting a first circuit to a second circuit, and the data path is arranged in the memory device and coupled to the memory cell array; and a logic circuit, which is used to encode data on the data path from the first circuit using the physical unclonable function code to generate encoded data and provide the encoded data to the second circuit. As used herein, a physical unclonable function (referred to as a physical unclonable function or physically unclonable function, referred to as PUF) is a program that can be used to form a unique random key for a physical entity (such as an integrated circuit). Implementations of the disclosed technology can use a PUF that generates a key for a chip ID. Some applications can support hardware intrinsic security (HIS) technology. The circuit that generates the PUF, that is, the physical unclonable function circuit (referred to as the PUF circuit) is a physical entity implemented in a physical structure that generates a code that is easy to evaluate but difficult to predict or includes the physical entity.

[0006] In a representative fixed memory implementation, a first circuit includes a data buffer for registering addresses, a second circuit includes an address generator coupled to a memory cell array, and a data path includes a first path connecting the data buffer and a logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the address generator. The logic circuit for encoding data on the data path includes logic for encoding an address on the first path from the data buffer to generate an encoded address, and the logic provides the encoded address to the address generator via the second path, wherein the logic uses a physical unclonable function code (PUF code) to encode the address on the first path. In some implementations, the logic circuit for encoding data may include an exclusive-or function that uses the PUF code and the data on the data path as inputs and generates output as encoded output data.

[0007] In another representative embodiment, the first circuit includes a data buffer for registering input data, the second circuit includes an SRAM buffer, and the data path includes a first path connecting the data buffer and a logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the SRAM buffer. The logic circuit for encoding data on the data path includes logic for encoding input data on the first path from the data buffer to generate encoded input data, and the logic provides the encoded input data to the SRAM buffer via the second path, wherein the logic uses a PUF code to encode the input data on the first path.

[0008] In another representative embodiment, a first circuit includes a sense amplifier coupled to a memory cell array, a second circuit includes an output buffer coupled to an input and output interface for receiving, transmitting, and providing external access, and a data path includes a first path connecting the sense amplifier and a logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the output buffer. The logic circuit for encoding data on the data path includes logic for encoding output data on the first path from the sense amplifier to generate encoded output data, and the logic provides the encoded output data to the output buffer via the second path, wherein the logic uses a PUF code to encode the output data on the first path.

[0009] In yet another representative embodiment, the first circuit includes a first set of memory cells disposed at a first position in a memory cell array, the second circuit includes a second set of memory cells disposed at a second position in the memory cell array, and the data path includes a first path connecting the first set of memory cells to a logic circuit for encoding data and a second path connecting the logic circuit for encoding data to the second set of memory cells. The logic circuit for encoding data on the data path includes logic for encoding an initial key on a first path from the first set of memory cells to generate an encoded key, and the logic provides the encoded key to the second set of memory cells via the second path, wherein the logic uses a PUF code to encode the initial key on the first path. The memory device may include logic for receiving an initial key from a source external to the memory device and for storing the initial key in the first set of memory cells. The initial key may include a critical security parameter.

[0010] The disclosed techniques are applicable to all types of memories having a command interface. Example embodiments are described where the memory array includes a flash device, however, the techniques described in this disclosure may also be applied to other types of memory devices. Some embodiments implement the disclosed security mechanism in NOR flash memory. Other embodiments implement the disclosed security mechanism in NAND flash memory. Still other embodiments implement the security command decoder mechanism in a memory that is not a flash memory.

[0011] A method for operating a memory device as described in the present invention is also provided.

[0012] Embodiments of the disclosed technology present an ideal aspect that devices that deploy the disclosed technology can be easily manufactured but produce codes that are virtually impossible to repeat or predict even if the exact manufacturing process that produces the code is known. Other aspects and advantages of the present invention can be seen after reviewing the following drawings, detailed description, and protection scope. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a simplified block diagram of a memory device including a memory cell array and logic for using a PUF circuit according to one embodiment.

[0014] Figure 2 As shown in the present invention, Figure 1 An example data path for generating an encoded address is described in a system of an apparatus embodiment.

[0015] Figure 3 As shown in the present invention, Figure 1 An example data path for generating encoded input data is described in a system of an apparatus embodiment.

[0016] Figure 4As shown in the present invention, Figure 1 An example data path for generating encoded output data is described in a system of an apparatus embodiment.

[0017] Figure 5 As shown in the present invention, Figure 1 An example data path for generating an encoded key is described in a system of an apparatus embodiment.

[0018] Figure 6 To illustrate the present invention for Figure 1 A flowchart of an example method for using a PUF code in a memory device is described in a system of a device embodiment of the present invention.

[0019] Figure 7 FIG. 5 is a simplified block diagram of a memory device including a memory cell array and a DRBG random number generator according to another embodiment.

[0020] Fig. 8A As shown in the present invention, Figure 7 The apparatus of the system of the embodiment is described as a circuit for generating an initial value for a random number generator.

[0021] Figure 8B As shown in the present invention, Figure 7 The DRBG functional model is described in the system of the device embodiment.

[0022] Fig. 9 is a simplified block diagram of a memory device including a memory cell array and a GCM circuit according to yet another embodiment.

[0023] Fig.10 As shown in the present invention, Fig. 9 The apparatus embodiment of the system describes the GCM authenticated encryption function.

[0024] Fig.11 To illustrate the present invention for Fig. 9 A flowchart of an example authenticated encryption method using a PUF code with GCM in a memory device is described in a system of a device embodiment.

[0025] Fig.12 Show the description as in the present invention for Figure 1 A truth table of an example of using a PUF code in a memory device is described in a system of a device embodiment of the present invention.

[0026]

Explanation of symbols

[0027] 100, 700, 900: Memory device

[0028] 110, 710, 910: Memory cell array

[0029] 111, 711, 911: first memory unit set

[0030] 112, 712, 912: second memory unit set

[0031] 113: Word line decoder

[0032] 114: Bit line decoder

[0033] 115: Bit line

[0034] 116, 121, 123, 134, 136, 144, 154, 164: Bus

[0035] 117: Sense Amplifier

[0036] 118: Output buffer

[0037] 120, 790, 990: Input and output interface

[0038] 122, 146, 147, 178, 181, 182, 188, 191, 716, 735, 916, 917, 932, 933, 935, 936: Line

[0039] 125: Data buffer

[0040] 130, 140, 150, 160: Logic circuits

[0041] 131, 141, 151, 161: First Path

[0042] 132, 142, 152, 162: Second path

[0043] 133, 143, 153, 163, 850: PUF circuit

[0044] 135: Address Generator

[0045] 145: SRAM buffer

[0046] 170: Clock Generator

[0047] 171: Port

[0048] 172: Signal line

[0049] 173: Internal clock

[0050] 180: Mode Logic Circuit

[0051] 185: State Machine

[0052] 186: Signal

[0053] 187: High Voltage Generator

[0054] 190, 770, 970: Security Engine

[0055] 610, 620, 630: Steps

[0056] 715, 915: User data area

[0057] 730: DRBG random number generator

[0058] 780, 980: SRAM buffer

[0059] 800: Circuit

[0060] 801, 803, 805, 807: Block

[0061] 802, 804, 806, 808: Encryption results

[0062] 810, 820, 830: CBC-MAC block

[0063] 811, 812, 813, 814: Block ciphers

[0064] 819, 829, 839: CBC-MAC output

[0065] 840: Full entropy output

[0066] 855: Personalized string or additional string (384-bit PUF code)

[0067] 860: Materialization Function

[0068] 865: Seed

[0069] 913: Counter

[0070] 930: GCM circuit

[0071] 931: Connection function

[0072] 1001, 1002, 1003, 1004, 1005, 1006, 1007: Blocks

[0073] 1200: Truth Table

[0074] A: Additional authentication data

[0075] C: Ciphertext

[0076] H: Hash subkey

[0077] IV: Initialization Vector

[0078] K: encryption key

[0079] Key: Secret key

[0080] Key1: Initial key

[0081] Key2: Encoded key

[0082] P: Plain text

[0083] SCLK: system clock signal

[0084] T: Certification label DETAILED DESCRIPTION

[0085] The following description will generally refer to specific structural embodiments and methods. It should be understood that there is no intention to limit the technology to the specific disclosed embodiments and methods, and other features, components, methods and embodiments can be used to practice the technology. Preferred embodiments are described to illustrate the technology of the present invention, but not to limit its scope of protection, which is defined by the scope of the application. Those skilled in the art will recognize various equivalent changes described below. Detailed descriptions of embodiments of the present invention are provided with reference to the accompanying drawings.

[0086] Figure 1 is a simplified block diagram of a memory device including a memory cell array and logic for using a PUF circuit according to one embodiment. Figure 1 The memory device 100 shown in the EMBODIMENTS 100 includes a memory cell array 110, and one or more PUF circuits 133, 143, 153, 163 in the memory device for generating a PUF code. The memory device includes: a data path connecting a first circuit to a second circuit, the data path being arranged in the memory device and coupled to the memory cell array; and logic circuits 130, 140, 150, 160 for encoding data on the data path from the first circuit using a PUF code to generate encoded data and providing the encoded data to the second circuit. The PUF code may include multiple bits, such as 128 bits. The data path may include a multi-bit bus, such as a bus having 128 bits.

[0087] The memory device 100 includes an input and output interface 120, which may include a wireless port or a wired port that provides access to other devices or networks outside the memory device. The input and output interface 120 may include a plurality of pins, including a serial data I / O (input and output) for synchronization with a system clock signal SCLK, and pins for receiving and / or sending address, data, and command signals. The memory device 100 includes a data buffer 125 coupled to the input and output interface 120 via a bus 121. The data buffer 125 may register addresses and input data received from other devices or networks via the input and output interface 120. The memory device 100 includes an address generator 135 coupled to the memory cell array 110 via a bus 136.

[0088] In a first embodiment, the encoded data includes an encoded address. In this embodiment, the same encoding is used to write and read data, so that it is difficult to tamper with the physical location of the secret data because the PUF code is random and non-copyable. The first circuit may include a data buffer 125 for registering addresses, and the second circuit may include an address generator 135 coupled to the memory cell array 110. The data path may include a first path 131 connecting the data buffer 125 and a logic circuit 130 for encoding data, and a second path 132 connecting the logic circuit 130 for encoding data and the address generator 135. The logic circuit for encoding data on the data path may include logic for encoding an address on the first path from the data buffer to generate an encoded address, and the logic provides the encoded address to the address generator via the second path, wherein the logic uses the PUF code to encode the address on the first path. The PUF circuit 133 can generate a PUF code and provide the PUF code to the logic circuit 130 via the bus 134. For example, the PUF circuit 133 may include a register that registers the PUF code and is connected to the logic circuit via the bus 134. The logic circuit 130 includes logic for encoding data on the data path using the PUF code provided by the PUF circuit 133 and the address registered on the data register 125 as inputs and generating outputs as encoded addresses.

[0089] In a second embodiment, the encoded data includes the encoded input data. In this embodiment, the encoded data is decoded before being output by the logic 150 on the output side. The PUF code used for scrambling can be stored with the scrambled data and later extracted for descrambling. The input data is exclusive-or'ed by the PUF to obtain the scrambled data, and then stored in flash memory. The stored scrambled data is XOR'ed again by the PUF code to be stored as by Fig.12 The output shown in the truth table 1200 of the illustration is previously descrambled back to the original data.

[0090] The first circuit may include a data buffer 125 registering input data, and the second circuit may include an SRAM buffer 145. The data path may include a first path 141 connecting the data buffer 125 and a logic circuit 140 for encoding data, and a second path 142 connecting the logic circuit 140 and the SRAM buffer 145. The logic circuit 140 for encoding data on the data path may include logic for encoding input data on the first path 141 from the data buffer 125 using a PUF code generated by a PUF circuit 143 to generate encoded input data and providing the encoded input data to the SRAM buffer 145 via a second path 142. The PUF circuit 143 generates a PUF code and provides the PUF code to the logic circuit 140 via a bus 144. The logic circuit 140 includes logic for encoding data on the data path using the PUF code provided by the PUF circuit 143 and the input data registered on the data buffer 125 as inputs and generating outputs as encoded input data.

[0091] The word line decoder 113 is coupled to and electrically communicates with a plurality of word lines in the memory cell array 110. The bit line decoder 114 is electrically communicated with a plurality of bit lines 115 in the memory cell array 110 for reading, writing, and erasing memory cells in the memory cell array 110. The address is supplied to the word line decoder 113 and the bit line decoder 114 on a bus 136. A sense amplifier 117 including voltage and / or current sources for a read mode, a program mode, and an erase mode is coupled to the bit line decoder 114 via a bus 116.

[0092] In a third embodiment, the encoded data includes encoded output data. In this embodiment, the PUF code for the scrambled output may be stored with the scrambled data for descrambling. As in the second embodiment, the output data may be XORed with the PUF to obtain the scrambled data. The scrambled data is XORed again with the PUF code to descramble back to the original data. The first circuit may include, for example, a sense amplifier 117 coupled to the memory cell array 110 via a bit line decoder 114, and the second circuit may include an output buffer 118 coupled to an input and output interface 120 providing external access via a bus 123. The data path may include a first path 151 connecting the sense amplifier 117 and the logic circuit 150, and a second path 152 connecting the logic circuit 150 and the output buffer 118. The logic circuit 150 that encodes the data on the data path may include logic that uses the PUF code generated by the PUF circuit 153 to encode the output data on the first path 151 from the sense amplifier 117 to generate the encoded output data and provides the encoded output data to the output buffer 118 via the second path 152. PUF circuit 153 generates a PUF code and provides the PUF code to logic circuit 150 via bus 154. Logic circuit 150 includes logic to encode data on the data path using the PUF code provided by PUF circuit 153 and output data from sense amplifier 117 as inputs and produce output as encoded output data.

[0093] In a fourth embodiment, the initial key is encoded using a PUF code to generate an encoded key. In this embodiment, the encoded / scrambled key needs to be descrambled before it is used for cryptographic compilation. The initial key can be provided to the memory device 100 ( Figure 1 ) of the memory device. The memory device may include logic for receiving an initial key from a source external to the memory device and for storing the initial key in a first location in the memory cell array 110. The initial key may include a critical security parameter. As used in the present invention, a critical security parameter (CSP) refers to security-related information (e.g., secret and private cryptographic keys, and authentication data such as passwords and PINs) whose disclosure or modification may compromise the security of the cryptographic module.

[0094] In this embodiment, the first circuit may include a first memory cell set 111 disposed at a first position in a memory cell array, and the second circuit may include a second memory cell set 112 disposed at a second position in the memory cell array. The data path may include a first path 161 connecting the first memory cell set 111 and a logic circuit 160, and a second path 162 connecting the logic circuit 160 and the second memory cell set 112. The logic circuit 160 may include logic for encoding an initial key Key1 on the first path from the first memory cell set 111 to generate an encoded key Key2, and the logic provides the encoded key Key2 to the second memory cell set 112 via the second path, wherein the logic uses a PUF code to encode the initial key Key1 on the first path. The PUF circuit 163 generates a PUF code and provides the PUF code to the logic circuit 160 via a bus 164. The logic circuit 160 includes logic for encoding data on the data path using the PUF code provided by the PUF circuit 163 and the initial key from the first memory cell set 111 as inputs and generating outputs as encoded keys. The encoded key is stored in a second set of memory cells 112 disposed at a second location in the memory cell array.

[0095] An external system clock SCLK may be provided to the memory device at port 171. Clock generator 170 may receive system clock signal SCLK from port 171 via signal line 172, and provide internal clock 173 to mode logic circuit 180, and / or provide other internal clocks to other internal circuits in memory device 100. Mode logic circuit 180 may receive command signals from input and output interface 120 via line 122, decode the command signals for various modes (read, write, erase), and send the decoded signals to state machine 185 via line 181 for performing read operations, write operations, erase operations on the memory cell array. The state machine 185 can receive signals from the SRAM buffer 145 via line 146, receive signals from the mode logic circuit 180 via line 181, and generate a signal 186 for the sense amplifier 117 and the high voltage generator 187 for high voltage operations, such as for write operations, to enable the high voltage generator 187 to control the application of bias configuration supply voltage and current sources of the memory cell array 110 via line 188, such as read, write, and erase voltages and / or currents.

[0096] The security engine 190 is coupled to the mode logic circuit 180 via line 182, to the SRAM buffer 145 via line 147, and to the state machine 185 via lines 178 and 191. The security engine 190 may include logic to handle the password input from the state machine 185 via line 178 and provide a response output to the state machine 185 via line 191 using the input from the mode logic circuit 180 and the encoded input data from the SRAM buffer 145. The security engine 190 may process the password input from the state machine using encryption / decryption, Hash Message Authentication Code (HMAC), or similar techniques familiar to those skilled in the art.

[0097] In an embodiment, the logic circuit (130, 140, 150, 160) for encoding data on the data path using the PUF code may include at least one of a logic function, an exclusive-or function, and a complex equation, the logic circuit (130, 140, 150, 160) using the data on the data path and the PUF code as input and generating the encoded output data as output, as shown in FIG. Figures 2 to 5 Further description. The data may be XORed through the PUF to obtain the scrambled data. The scrambled data may be XORed through the PUF code again to descramble back to the original data. Alternatively, the logic circuit may use other logic suitable for encoding the data on the data path using the PUF code.

[0098] Figure 2 As shown in the present invention, Figure 1 An example data path for generating an encoded address is described in a system of an apparatus embodiment of the present invention. Figure 2 In the depicted embodiment, PUF circuit 133 may generate a multi-bit PUF code having N number of bits, for example, N=128, and provide the PUF code having N number of bits to logic circuit 130 via bus 134. Data buffer 125 may register an address having N number of bits. The data path including first path 131 and second path 132 may include a multi-bit bus, such as a bus having N number of bits. Although for clarity, Figure 21 and 1 are shown, but the PUF code may have N number of bits and the address may have N number of bits, where N>1, for example, N=128. The logic circuit 130 includes logic for encoding data on the data path using the generated PUF code. The logic circuit 130 may include an exclusive-or function, which also includes N number of XOR gates. The logic circuit 130 connected to the respective XOR gates of the N number of XOR gates may use the N-bit PUF code and the N-bit address as inputs, and generate an output as an encoded address having N number of bits via the second path 132 in the data path to the address generator 135. Alternatively, the logic circuit 130 may use other logic suitable for encoding the address using the PUF code.

[0099] Figure 3 As shown in the present invention, Figure 1 The system of the apparatus embodiment of the present invention describes an example data path for generating encoded input data. Figure 3 In the depicted embodiment, PUF circuit 143 may generate a multi-bit PUF code having N number of bits, for example, N=128, and provide the PUF code having N number of bits to logic circuit 140 via bus 144. Data buffer 125 may register input data having N number of bits. The data path including first path 141 and second path 142 may include a multi-bit bus, such as a bus having N number of bits. Although for clarity, Figure 3 1 and 1 are shown, but the PUF code may have N number of bits and the input data may have N number of bits, where N>1, for example, N=128. The logic circuit 140 includes logic for encoding the data on the data path using the generated PUF code. The logic circuit 140 may include an exclusive-or function, which includes N number of XOR gates at the same time. The logic circuit 140 connected to the respective XOR gates of the N number of XOR gates may use the N-bit PUF code and the N-bit input data as input, and generate an output as the encoded input data having N number of bits via the second path 142 in the data path to the SRAM buffer 145. Alternatively, the logic circuit 140 may use other logic suitable for encoding the input data using the PUF code.

[0100] Figure 4 As shown in the present invention, Figure 1 The system of the apparatus embodiment of the present invention describes an example data path for generating encoded output data. Figure 4In the depicted embodiment, PUF circuit 153 may generate a multi-bit PUF code having N number of bits, for example, N=128, and provide the PUF code having N number of bits to logic circuit 150 via bus 154. Sense amplifier 117 may provide output data having N number of bits. The data path including first path 151 and second path 152 may include a multi-bit bus, such as a bus having N number of bits. Although for clarity, Figure 4 1 and 1 are shown, but the PUF code may have N number of bits and the output data may have N number of bits, where N>1, for example, N=128. The logic circuit 150 includes logic for encoding data on the data path using the generated PUF code. The logic circuit 150 may include an exclusive-or function, which includes N number of XOR gates at the same time. The logic circuit 150 connected to the respective XOR gates of the N number of XOR gates may use the N-bit PUF code and the N-bit output data as inputs, and generate an output as encoded output data having N number of bits to the output buffer 118 via a second path 152 in the data path. Alternatively, the logic circuit 150 may use other logic suitable for encoding the output data using the PUF code.

[0101] Figure 5 As shown in the present invention, Figure 1 An example data path for generating an encoded key is described in a system of an apparatus embodiment of the present invention. Figure 5 In the depicted embodiment, the PUF circuit 163 may generate a multi-bit PUF code having N number of bits, for example, N=128, and provide the PUF code having N number of bits to the logic circuit 160 via the bus 164. The first memory cell set 111 at the first position in the memory cell array 110 may provide an initial key having N number of bits. The data path including the first path 161 and the second path 162 may include a multi-bit bus, such as a bus having N number of bits. Although for clarity, Figure 51 and 1 are shown, but the PUF code may have N number of bits and the key may have N number of bits, where N>1, for example, N=128. The logic circuit 160 includes logic for encoding the data on the data path using the generated PUF code. The logic circuit 160 may include an exclusive-or function, which also includes N number of XOR gates. The logic circuit 160 connected to the respective XOR gates of the N number of XOR gates may use the N-bit PUF code and the N-bit output data as input, and generate an output as an encoded key having N number of bits to the second memory cell set 112 at the second position in the memory cell array via a second path 162 in the data path. Alternatively, the logic circuit 160 may use other logic suitable for encoding the initial key using the PUF code.

[0102] Figure 6 To illustrate the present invention for Figure 1 A flowchart of an example method for using a PUF code in a memory device is described in a system of an embodiment of a device of the present invention. The memory device may include: a memory cell array; a PUF circuit; a data path connecting a first circuit to a second circuit, the data path being arranged in the memory device and coupled to the memory cell array; and a logic circuit for encoding data on the data path, the logic circuit may include at least one of a logic function, a mutually exclusive or exclusive-or function, and a complex equation.

[0103] At step 610, the PUF circuit may be executed to generate a PUF code. At the encoding step at step 620, the data on the data path from the first circuit may be encoded using the PUF code to generate encoded data, wherein the encoding step includes applying at least one of a logic function, an exclusive or exclusive-or function, and a complex equation, the logic function, the exclusive or exclusive-or function, and the complex equation using the PUF code and the data on the data path as input and generating an output as encoded output data. At step 630, the encoded data may be provided to the second circuit.

[0104] In a representative fixed storage implementation, such as Figure 2As shown in the example of , the encoded data includes an encoded address. The first circuit may include a data buffer 125 for registering addresses, the second circuit may include an address generator 135 coupled to the memory cell array 110, and the data path may include a first path 131 connecting the data buffer 125 and a logic circuit 130 for encoding data and a second path 132 connecting the logic circuit for encoding data and the address generator 135. In this embodiment, the method may include encoding an address on the first path 131 from the data buffer 125 using a PUF code to generate an encoded address, and providing the encoded address to the address generator 135 via the second path 132.

[0105] In another representative embodiment, Figure 3 As shown in the example of , the encoded data includes the encoded input data. The first circuit may include a data buffer 125 that registers the input data, and the second circuit includes an SRAM buffer 145. The data path may include a first path 141 connecting the data buffer 125 and the logic circuit 140, and a second path 142 connecting the logic circuit 140 and the SRAM buffer 145. In this embodiment, the method may include encoding the input data on the first path from the data buffer 125 using a PUF code to generate the encoded input data, and providing the encoded input data to the SRAM buffer 145 via the second path 142.

[0106] In another representative embodiment, Figure 4 As shown in the example of , the encoded data includes encoded output data. The first circuit may include, for example, a sense amplifier 117 coupled to the memory cell array 110 via a bit line decoder 114, and the second circuit may include an output buffer 118 coupled to the input and output interface 120 via a bus 123. The data path may include a first path 151 connecting the sense amplifier 117 and a logic circuit 150 for encoding data, and a second path connecting the logic circuit 150 for encoding data and the output buffer 118. In this embodiment, the method may include encoding the output data on the first path 151 from the sense amplifier 117 using a PUF code to generate the encoded output data, and providing the encoded output data to the output buffer 118 via a second path 152.

[0107] In another representative embodiment, Figure 5As shown in the example of , an initial key is encoded using a PUF code to generate an encoded key. The first circuit may include a first memory cell set 111 set at a first position in a memory cell array, and the second circuit may include a second memory cell set 112 set at a second position in the memory cell array. The data path may include a first path 161 connecting the first memory cell set 111 and the logic circuit 160, and a second path 162 connecting the logic circuit 160 and the second memory cell set 112. In this embodiment, the method may include encoding the initial key on the first path 161 from the first memory cell set 111 using a PUF code to generate an encoded key, and providing the encoded key to the second memory cell set 112 via the second path 162.

[0108] Figure 7 FIG. 7 is a simplified block diagram of a memory device 700 including a memory cell array 710 and a deterministic random bit generator (DRBG) random number generator 730 according to another embodiment. Figure 7 As shown in , the memory device 700 may include a memory cell array 710 , a DRBG random number generator 730 , a security engine 770 , an SRAM buffer 780 , and an input and output interface 790 .

[0109] The memory cell array 710 may include a user data area 715 for storing user data, a first memory cell set 711 disposed at a first position in the memory cell array, and a second memory cell set 712 disposed at a second position in the memory cell array. The first position and the second position are outside the user data area. Fig. 8A , which shows that the present invention is directed to Figure 7 The circuit for generating an initial value of a random number generator described in the system of the device embodiment may be a PUF code (such as Fig. 8A Generated by PUF850 Fig. 8A The 384-bit PUF code 855) is called a personalized string or an additional string. Figure 7 , Fig. 8A The 384-bit PUF code 855 can be stored in Figure 7 The key may be provided via line 735 and stored in the second memory cell set 712.

[0110] A random number generator 730, such as a deterministic random bit generator (DRBG), can generate a sequence of numbers having properties close to the properties of a sequence of random numbers. The sequence generated by the DRBG is determined by an initial value, such as a 384-bit seed generated by circuit 800, including Fig. 8A . CBC-MAC is a technique for constructing a message authentication code based on a block cipher. The sequence of numbers generated by the DRBG random number generator 730 can be stored as a key in a second set of memory cells 712 in the memory cell array 710. For background information on DRBG, it may be necessary to refer to NIST Special Publication 800-90A, entitled "Recommendation for Random Number Generation Using Deterministic Random Bit Generators," dated January 2012, which is incorporated by reference as if fully set forth in the present invention.

[0111] The memory device 700 includes a security engine 770, which may include circuitry implementing Advanced Encryption Standard (AES), Hash-based Message Authentication Code (HMAC), etc. for performing encryption / decryption operations on data stored by the memory device 700 and / or performing MAC calculations for authentication. The security engine 770 is coupled to the DRBG random number generator 730 so that the sequence of numbers generated by the DRBG random number generator 730 can be used by the security engine 770 as an initial value for performing encryption of data and / or address information stored by the memory device 700. In one embodiment, the CMC-MAC implements entropy source regulation applied prior to the DRBG function.

[0112] The memory device 700 includes an SRAM buffer 780 that can be used to register data on a data path coupled to the memory cell array 710 .

[0113] The memory device 700 includes an input and output interface 790, which may include a wireless port or a wired port that provides access to other devices or networks outside the memory device. The input and output interface 790 may include a plurality of pins, including pins for serial data I / O (input and output), for receiving and / or sending address, data, and command signals. For example, the input and output interface 790 may support a serial peripheral interface (SPI), an inter-integrated circuit (I2C), etc.

[0114] Fig. 8A As shown in the present invention, Figure 7 A circuit for generating an initial value for a random number generator is described in a system of an apparatus embodiment of the invention. Circuit 800 includes a first cipher block chaining message authentication code (CBC-MAC) block 810, a second CBC-MAC block 820, and a third CBC-MAC block 830 that generate a first CBC-MAC output 819, a second CBC-MAC output 829, and a third CBC-MAC output 839, respectively. Each of the first CBC-MAC output, the second CBC-MAC output, and the third CBC-MAC output may include 128 bits. The first CBC-MAC output, the second CBC-MAC output, and the third CBC-MAC output are combined into a 384-bit full entropy (e.g., completely random and without a meaningful pattern) output 840.

[0115] The PUF circuit 850 can generate a 384-bit PUF code 855, which is called a personalized string or an additional string. The 384-bit full entropy output 840 and the 384-bit PUF code 855 are input to the materialization function 860 to generate a 384-bit seed 865, which is called an initial value. The 384-bit seed 865 is generated by Figure 7 The DBRG random number generator 730 uses the reference Figure 8B The process further described in generates a pseudo-random output via line 735.

[0116] Continue to refer Fig. 8A, a CBC-MAC block (such as the first CBC-MAC block 810) includes a circuit system that implements a message authentication code constructed according to a block cipher. (By verifying that the message authentication code is correct, the receiving end can verify that the information has not been tampered with after it is sent but before it is received.) The information is encrypted in CBC mode by some block cipher algorithm to form a series of blocks (801, 803, 805, 807), so that the encryption at each block depends on the encryption result of the previous block (for example, the encryption of block 803 depends on the result 802 of the previous encryption stage of encryption block 801). The information may include multiple blocks B0, block B1, block B2, block B3, etc., each of which includes 128 bits. The information may be data to be stored in, for example, the user data area 715 of the memory cell array 710 or extracted from the user data area 715 of the memory cell array 710. When CMC-MAC is used for entropy source regulation, blocks B0 to B3, etc. will be random bits from a random number generator. Although Fig. 8A Four blocks (801, 803, 805, 807) are shown for the information, but the information may include more than four blocks. The block chain is initialized by a zero initialization vector "All 0". The CBC-MAC of the information is calculated using the secret key Key and block ciphers 811 to 814. For example, the block cipher may be an AES engine that implements the algorithm in the Advanced Encryption Standard (AES). AES may include three block ciphers: AES-128, AES-192, and AES-256, which use 128-bit key lengths, 192-bit key lengths, and 256-bit key lengths, respectively. Although Fig. 8A A 256-bit key length is shown in FIG, but a 128-bit key length and a 192-bit key length may be used in embodiments.

[0117] Block cipher 811, block cipher 812, block cipher 813, and block cipher 814 produce encryption results B0′, B1′, B2′, and B3′ (802, 804, 806, 808), respectively. The encryption result at the last block (e.g., block B3) produces a 128-bit output from the CBC-MAC block, such as the first CBC-MAC output 819 from the first CBC-MAC block 810. The encryption at each block depends on the encryption result of the previous block. For example, the encryption at block B1 803 depends on the encryption result B0′802 of the previous block B0 801, the encryption at block B2 805 depends on the encryption result B1′804 of the previous block B1 803, and the encryption at block B3 807 depends on the encryption result B2′806 of the previous block B2 805.

[0118] Figure 8B As shown in the present invention, Figure 7The DRBG functional model of the system of the device embodiment of the present invention is described. The DRBG functional model of the DBRG random number generator 730 generates a pseudo-random output via line 735 based on the seed. The seed 865 can be constructed by the embodiment function 860 based on the input including the personalized string or additional string 855 and the entropy input. The personalized string or additional string 855 can be generated by the PUF circuit 850 ( Fig. 8A ) is provided, and the entropy input can be outputted by 384 bits of full entropy 840 ( Fig. 8A ) is provided. In an embodiment, the materialization function, seed / resowing function may be AES CTR. Those skilled in the art may refer to NIST Special Publication 800-90a, entitled "Recommendations for Random Number Generation Using Deterministic Random Bit Generators," June 2015, which is incorporated by reference as if fully set forth in this invention.

[0119] Fig. 9 FIG. 2 is a simplified block diagram of a memory device including a memory cell array and a GCM circuit according to yet another embodiment. Fig. 9 As shown in FIG. 1 , a memory device 900 includes a memory cell array 910 and a Galois / Counter Mode (GCM) circuit 930 that implements a GCM function. GCM is described in NIST Special Publication 800-38D, November 2007, entitled "Recommendation for Block Cipher Modes of Operation: Galois / Counter Mode (GCM) and GMAC," which is incorporated by reference as if fully set forth herein.

[0120] The memory cell array 910 may include a user data area 915 for storing user data, a first memory cell set 911 disposed at a first position in the memory cell array, and a second memory cell set 912 disposed at a second position in the memory cell array. The first position and the second position are outside the user data area 915. A PUF code (such as additional authenticated data (AAD) generated by a PUF circuit) may be stored in the first memory cell set 911 and provided to the GCM circuit 930 via a line 916. A key (such as an authentication tag generated by the GCM circuit 930) may be provided via a line 935 and stored in the second memory cell set 912. The memory cell array 910 may include a counter 913.

[0121] The GCM circuit 930 may include three input strings: plaintext denoted as P, additional authentication data (AAD) denoted as A, and an initialization vector denoted as IV, and include two output strings: ciphertext denoted as C and an authentication tag denoted as T. In the GCM function, the plaintext P is encrypted into the ciphertext C, and the authentication tag T is generated from the additional authentication data AAD and the ciphertext C. Fig.10 GCM is further described.

[0122] The circuit for constructing an initialization vector (IV) is implemented by a deterministic construction. In the deterministic construction, the IV is a concatenation of two fields called a fixed field and a call field. In one embodiment, the fixed field identifies the device, or more generally, identifies the instance of an authenticated cryptographic function. The call field identifies the input set of the authenticated cryptographic function in that particular device. The PUF code stored in the first set of memory cells 911 can be a fixed field. The counter output from the integer counter 913 stored in the memory cell array 910 can be a call field. The PUF code can be included in additional authentication data (AAD), which is provided to the AAD input A of the GCM circuit 930 in the GCM circuit 930 via line 916. The counter output can be provided to the GCM circuit 930 via line 917. The concatenation function 931 can concatenate the PUF code and the counter output to generate the initialization vector IV. The initialization vector IV can be provided to the initialization vector input IV of the GCM circuit 930 via line 932. Plaintext is provided to the plaintext input P of the GCM circuit 930 via line 933. The plaintext may be data to be stored in or extracted from the user data area 915 of the memory cell array 910, for example. The counter may be a volatile counter or a non-volatile counter extracted from the memory cell array 910.

[0123] The GCM circuit 930 may generate an authentication tag T and a ciphertext C. The encryption key K stored by the second memory cell set 912 disposed at a second position in the memory cell array 910 may be provided to the GCM 930 via line 935. Once the plaintext 933 is encrypted into ciphertext, the ciphertext and the tag may be output to the user and / or stored in the user data area 915 of the memory cell array 910 via line 936.

[0124] The memory device 900 includes a security engine 970, which may include circuitry that implements the Advanced Encryption Standard (AES), a hash-based message authentication code (HMAC), etc., for performing encryption / decryption operations on data stored by the memory device 900 and / or performing MAC calculations for authentication. The security engine 970 implements a GCM mode of operation (e.g., GCM circuit 930) in accordance with NIST SP 800-38d for performing encryption / decryption operations. Of course, AES GCM is one type of encryption / decryption technology used by some embodiments.

[0125] The memory device 900 includes an SRAM buffer 980, which can be used to register data on a data path coupled to the memory cell array 910. The memory device 900 includes an input and output interface 990, which may include a wireless port or a wired port that provides access to other devices or networks outside the memory device. The input and output interface 990 may include a plurality of pins, including pins for serial data I / O (input and output), for receiving and / or sending address, data, and command signals. For example, the input and output interface 990 may support a serial peripheral interface (SPI), an inter-integrated circuit (I2C), etc.

[0126] Fig.10 As shown in the present invention, Fig. 9 The system of the device embodiment of the present invention is an authenticated encryption function of the Galois / Counter Mode (GCM). In this embodiment, the plaintext is encrypted into ciphertext, and the authentication tag is generated from the additional authentication data (AAD) and the ciphertext.

[0127] As used in the present invention, additional authentication data AAD refers to the input data of the authenticated encryption function that is authenticated but not encrypted. Authentication tag refers to a cryptographic checksum of data designed to reveal both accidental errors and intentional modifications of the data. Ciphertext refers to the encrypted form of the text. Plaintext refers to the input data of the authenticated encryption function that is authenticated and encrypted.

[0128] The variables used in GCM include:

[0129]

[0130] like Fig.10 and Fig.11 As shown in , the GCM authenticated encryption function includes the following steps:

[0131] 1. Make H=CIPH K (0 128 ).

[0132] 2. Define block J0 as follows:

[0133] If len(IV) = 96, then let J0 = IV||0 31 ||1.

[0134] If len(IV)≠96, then And make

[0135] J0=GHASH H (IV||0 s+64 ||[len(IV)] 64 ).

[0136] 3. Make C = GCTR K (inc 32 (J0), P).

[0137] 4. Make And make

[0138] 5. Define block S as follows:

[0139] S=GHASH H (A||0 V ||C||0 u ||[len(A)] 64 ||[len(C)] 64 ).

[0140] 6. Make T = MSB t (GCTR K (J0, S)).

[0141] There are three input strings to the GCM authenticated encryption function: the plaintext, denoted P, the additional authentication data (AAD), denoted A, and the initialization vector IV. GCM protects the authenticity of the plaintext and AAD. There are two output strings from the GCM authenticated encryption function: the ciphertext, denoted C, whose bit length is the same as the bit length of the plaintext; and the authentication tag, or tag, denoted T. The mathematical components of GCM include the increment function inc s , block multiplication operations, GHASH functions, and GCTR functions.

[0142] Fig.11 To illustrate the present invention for Fig. 9 A flowchart of an example authenticated encryption method using a PUF code with GCM in a memory device is described in a system of a device embodiment.

[0143] In block 1001, by using the block cipher CIPH K Applied to block 0 128 To generate the hash subkey H of the GHASH function.

[0144] In block 1002, a pre-counter block (J0) is generated from an initialization vector IV.

[0145] In block 1003, the 32-bit increment function inc 32 Applied to the pre-counter block (J0) to produce the initial counter block used to call the GCTR function on the plaintext P. The output of this call of the GCTR function is the ciphertext C.

[0146] In blocks 1004 and 1005, AAD and ciphertext C are each appended with a minimum number of '0' bits (possibly none) such that the bit length of the resulting string is a multiple of the block size. The concatenation of these strings is appended with a 64-bit representation of the length of AAD and ciphertext C ([len(A)] 64 , [len(C)] 64 ).

[0147] In block 1006, a GHASH function is applied to the results to produce a single output block.

[0148] In block 1007, this output block is encrypted using the GCTR function with the pre-counter block (J0) generated in block 1002, and the result is truncated to the specified tag length t (MSB t ) to form an authentication tag T.

[0149] Other implementations of the methods described in this section may include a non-transitory computer-readable storage medium storing instructions executable by a processor to perform any of the methods described above. Yet another implementation of the methods described in this section may include a system including a memory and one or more processors operable to execute instructions stored in the memory to perform any of the methods described above.

[0150] Any data structures and program codes described or referred to above are stored according to many embodiments on a computer-readable storage medium, which can be any device or medium that can store program codes and / or data for use by a computer system. This includes, but is not limited to, volatile memory, non-volatile memory, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), magnetic and optical storage devices (such as disk drives, magnetic tapes, compact discs (CDs), digital versatile discs or digital video discs (DVDs)), or other media now known or later developed that are capable of storing computer-readable media.

[0151] A byte is a basic storage unit used in many integrated circuit logic and memory circuits and is composed of eight bytes. The basic storage unit may have other sizes, including, for example, one bit, two bits, four bits, 16 bits, and the like. Therefore, the description of the encryption / decryption logic circuits described above and in other examples described in the present invention utilizing the term byte is generally applied to circuits using storage units of different sizes as will be described by replacing the term byte or a set of bytes with a storage unit or a set of storage units. In addition, in some embodiments, storage units of different sizes may be used for a single command sequence, such as one or more four-bit storage units merged with eight-bit storage units. As used in the present invention, scrambling and encoding are essentially interchangeable and refer to the use of logic circuits to apply PUF codes to electronic signals (such as descrambled and decoded) to perform an inversion operation. As used in this invention, encryption and enciphered are essentially interchangeable and refer to the use of circuit systems and / or software to apply encryption algorithms to data represented in electronic form (e.g., stored in a storage device or carried via wires or air waves) (e.g., decrypted and deciphered) to perform the inverse operation.

[0152] Several flow charts showing logic executed by a memory controller or by a memory device are described in the present invention. The logic can be implemented using a processor programmed with a computer program stored in a memory accessible to a computer system, and can be executed by a processor, by dedicated logic hardware (including field programmable integrated circuits), and by a combination of dedicated logic hardware and computer programs. As with all flow charts in the present invention, it should be understood that many steps can be merged, executed in parallel, or executed in different sequences without affecting the functions achieved. In some cases, as the reader will understand, the reconfiguration steps will achieve the same results as long as certain other changes are also made. In other cases, as the reader will understand, the reconfiguration steps will achieve the same results as long as certain conditions are met. In addition, it will be understood that the flow charts in the present invention only show steps related to understanding the described technology, and it will be understood that a large number of additional steps for implementing other functions can be performed before, after, and between the steps shown.

[0153] An apparatus having a security logic circuit and a method for responding to a command sequence received at an input and output interface, the command sequence including information to be encoded, encrypted, decoded, or decrypted is described herein.

[0154] The present invention describes a device having a security logic circuit and a PUF code generation circuit and a method for responding to a command sequence received at an input and output interface.

[0155] A device having a secure logic circuit and a PUF code generation circuit and a method for executing a command are described, the method comprising: receiving a command carrying a real-time data payload, the real-time data payload including information to be encoded, encrypted, decoded, or decrypted; applying a PUF code generated by the PUF code generation circuit to encode and decode the carried electronic information; thereby obtaining an encoded version or a decoded version of the electronic information; and performing a memory operation corresponding to the encoded version or the decoded version of the electronic information.

[0156] A device having a security logic circuit and a PUF code generation circuit and a method are described, including the security logic circuit applying a PUF code to at least one of a data path carrying an address and a data path carrying data for storage to or extraction from a memory cell.

[0157] An apparatus and a method are described having a security logic circuit, a PUF code generation circuit, and a deterministic random number generator that generates at least a pseudo-random number sequence, including: a security logic circuit that combines the output of the deterministic random number generator with a personalized string to generate a seed value for initializing a cryptographic operation; and applying the generated PUF code as the personalized string.

[0158] A device having a security logic circuit and a PUF code generation circuit and a method are described, including the security logic circuit applying a cryptographic algorithm to data to be stored in a memory cell, stored in a memory cell, extracted from a memory cell, or to be extracted from a memory cell as input based on additional authentication data; and wherein the security logic circuit concatenates the generated PUF code to a generated counter value to obtain the additional authentication data.

[0159] An apparatus having a security logic circuit and a PUF code generation circuit and a method are described, including a security logic circuit for encoding an address on a first path from a data buffer using a PUF code to generate an encoded address and providing the encoded address to an address generator via a second path.

[0160] A device having a security logic circuit and a PUF code generation circuit and a method are described, including a security logic circuit for encoding data on a data path, which includes logic for encoding input data on a first path from a data buffer to generate encoded input data, and the logic provides the encoded input data to an SRAM buffer via a second path, wherein the logic uses a PUF code to encode the input data on the first path.

[0161] An apparatus having a secure logic circuit and a PUF code generation circuit and a method are described, including a secure logic circuit to encode output data on a first path from a sense amplifier using a PUF code to generate encoded output data and provide the encoded output data to an output buffer via a second path.

[0162] A device having a security logic circuit and a PUF code generation circuit and a method are described, including a security logic circuit to encode an initial key on a first path from a first set of memory cells using a PUF code to generate an encoded key and provide the encoded key to a second set of memory cells via a second path.

[0163] So far, the embodiments of the present invention have been described in detail with reference to the accompanying drawings.

[0164] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A memory device, comprising: a memory cell array; A physical unclonable function circuit (PUF circuit), disposed in the memory device, the physical unclonable function circuit being used to generate a physical unclonable function code (PUF code); a data path connecting the first circuit to a second circuit disposed in the memory device and coupled to the memory cell array; as well as a logic circuit for encoding data on the data path from the first circuit using the physically non-copyable function code to generate encoded data, and providing the encoded data to the second circuit; Wherein, when the first circuit includes a data buffer for registering an address, the second circuit includes an address generator coupled to the memory cell array; the data path includes a first path connecting the data buffer and the logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the address generator; and the logic circuit for encoding data on the data path includes logic for encoding an address on the first path from the data buffer to generate an encoded address, and the logic provides the encoded address to the address generator via the second path, wherein the logic uses the physically non-copyable function code to encode the address on the first path; or When the first circuit includes a data buffer for registering input data, the second circuit includes an SRAM buffer; the data path includes a first path connecting the data buffer and the logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the SRAM buffer; and the logic circuit for encoding data on the data path includes logic for encoding input data on the first path from the data buffer to generate encoded input data, and the logic provides the encoded input data to the SRAM buffer via the second path, wherein the logic uses the physically non-copyable function code to encode the input data on the first path; or When the first circuit includes a sense amplifier coupled to the memory cell array, the second circuit includes an output buffer coupled to an input and output interface, the input and output interface providing external access; the data path includes a first path connecting the sense amplifier and the logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the output buffer; and the logic circuit for encoding data on the data path includes logic for encoding output data on the first path from the sense amplifier to generate encoded output data, and the logic provides the encoded output data to the output buffer via the second path, wherein the logic uses the physically non-copyable function code to encode the output data on the first path; or When the first circuit includes a first set of memory cells set at a first position in the memory cell array, the second circuit includes a second set of memory cells set at a second position in the memory cell array; the data path includes a first path connecting the first set of memory cells and the logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the second set of memory cells; and the logic circuit for encoding data on the data path includes logic for encoding an initial key on the first path from the first set of memory cells to generate an encoded key, and the logic provides the encoded key to the second set of memory cells via the second path, wherein the logic uses the physically non-copyable function code to encode the initial key on the first path.

2. The memory device of claim 1 , wherein the logic circuitry for encoding data comprises at least one of a logic function, a mutually exclusive or exclusive-or function, and a complex equation, the logic circuitry using the physically non-copyable function code and the data on the data path as input and generating the encoded output data as output. The memory device of claim 1 , wherein the initial key comprises a critical security parameter.

4. The memory device according to claim 1, further comprising: Logic to receive an initial key from a source external to the memory device and to store the initial key in the first set of memory cells.

5. A method for using a physical unclonable function code (PUF code) in a memory device according to any one of claims 1 to 4, the memory device comprising: a memory cell array; Physical unclonable function circuit (PUF circuit); a data path connecting the first circuit to a second circuit disposed in the memory device and coupled to the memory cell array; and a logic circuit for encoding data on the data path, the method comprising: executing the physical unclonable function circuit to generate the physical unclonable function code; an encoding step of encoding data on the data path from the first circuit using the physically non-copyable function code to produce encoded data; and The encoded data is provided to the second circuit.

6. The method for using a physically non-copyable function code in a memory device according to claim 5, wherein the first circuit comprises a data buffer for registering an address, the second circuit comprises an address generator coupled to the memory cell array, and the data path comprises a first path connecting the data buffer and the logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the address generator, the method comprising: encoding an address on the first path from the data buffer using the physically non-copyable function code to produce an encoded address; as well as The encoded address is provided to the address generator via the second path.

7. The method for using a physically non-copyable function code in a memory device according to claim 5, wherein the first circuit comprises a data buffer for registering input data, the second circuit comprises an SRAM buffer, and the data path comprises a first path connecting the data buffer and the logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the SRAM buffer, the method comprising: encoding input data on the first path from the data buffer using the physically non-copyable function code to produce encoded input data; as well as The encoded input data is provided to the SRAM buffer via the second path.

8. The method for using a physically non-copyable function code in a memory device according to claim 5, wherein the first circuit comprises a sense amplifier coupled to the memory cell array, the second circuit comprises an output buffer coupled to an input and output interface, the input and output interface providing external access, and the data path comprises a first path connecting the sense amplifier and the logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the output buffer, the method comprising: encoding output data on the first path from the sense amplifier using the physically non-copyable function code to produce encoded output data; as well as The encoded output data is provided to the output buffer via the second path.

9. The method for using a physically non-copyable function code in a memory device according to claim 5, wherein the first circuit comprises a first memory cell set arranged at a first position in the memory cell array, the second circuit comprises a second memory cell set arranged at a second position in the memory cell array, and the data path comprises a first path connecting the first memory cell set and the logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the second memory cell set, the method comprising: encoding an initial key on the first path from the first set of memory cells using the physically unclonable function code to produce an encoded key; as well as The encoded key is provided to the second set of memory cells via the second path.

10. The method for using physically unclonable function codes in a memory device according to claim 9, wherein the initial key comprises a critical security parameter.

11. A method for using a physically unclonable function code in a memory device according to claim 8, wherein the encoding step includes applying at least one of a logical function, a mutually exclusive or exclusive-or function, and a complex equation, wherein the logical function, the exclusive-or function, and the complex equation use the physically unclonable function code and the data on the data path as input and produce an output as the encoded output data.

12. The method for using a physically non-copyable function code in a memory device according to claim 5, wherein the first circuit comprises a first memory cell set arranged at a first position in the memory cell array, the second circuit comprises a second memory cell set arranged at a second position in the memory cell array, and the data path comprises a first path connecting the first memory cell set and the logic circuit for encoding data and a second path connecting the logic circuit for encoding data and the second memory cell set, the method comprising: receiving an initial key from a source external to the memory device; storing the initial key in the first set of memory units; encoding the initial key on the first path from the first set of memory cells using the physically unclonable function code to produce an encoded key; as well as The encoded key is provided to the second set of memory cells via the second path.