# US 2023/0068302 A1 · Memory device and method for data encryption/decryption of memory device

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

- Number: US 2023/0068302 A1
- Document ID: US20230068302A1
- Status: Published application
- Kind: A1
- Application number: 17/698,639
- Filed: 2022-03-18
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: JAE HUN JANG; JI YOUP KIM; HAN BYEUL NA; YOUNG SUK RA; MAN KEUN SEO; HONG RAK SON; SE JIN LIM
- Web page: https://patentgrep.com/patent/US20230068302A1

## CPC

- H04L 9/0637: {Modes of operation, e.g. cipher block chaining [CBC], electronic codebook [ECB] or Galois/counter mode [GCM]}
- G06F 3/0623: {in relation to content}
- G06F 3/0658: {Controller construction arrangements}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/72: in cryptographic circuits
- H04L 9/0618: {Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory device includes an input unit configured to receive a plain text and output plain blocks and CTS plain block, a multi-core unit including a plurality of encryption/decryption cores configured to encrypt each of the plain blocks provided from the input unit and output cipher blocks in accordance with control of an encryption/decryption core control unit, a CTS core unit including a CTS core configured to encrypt the CTS plain block provided from the input unit into a CTS cipher block, and an output unit configured to receive the cipher blocks and the CTS cipher block and output a cipher text. The CTS plain block is generated through a CTS calculation based on the plain text.

## Claims

### Claim 1

A memory device, comprising:
an input unit configured to receive a plain text and output plain blocks and a CTS (Cipher Text Stealing) plain block;
a multi-core unit including a plurality of encryption/decryption cores configured to encrypt each of the plain blocks provided from the input unit and output cipher blocks in accordance with control of an encryption/decryption core control unit;
a CTS core unit including a CTS core configured to encrypt the CTS plain block provided from the input unit into a CTS cipher block; and
an output unit configured to receive the cipher blocks and the CTS cipher block and output a cipher text,
wherein the CTS plain block is generated through a CTS calculation based on the plain text.

### Claim 2 (depends on 1)

The memory device of claim 1, wherein the input unit includes a distributor,
the distributor is configured to divide the plain text into a plain text body and a plain text tail,
the plain text tail is data which is used to generate the CTS plain blocks, and corresponds to a part of the plain text other than the plain text body when the plain text is divided into the block units, and
a main body of the plain text is data except the plain text tail in the plain text.

### Claim 3 (depends on 2)

The memory device of claim 2, wherein the input unit further comprises a multi-core control unit,
the multi-core control unit is configured to receive the plain text body, and provide the plain text body to each of the plurality of encryption/decryption cores by dividing into the block units.

### Claim 4 (depends on 2)

The memory device of claim 2, wherein the input unit further comprises a CTS control unit, and
the CTS control unit is configured to receive any one of the cipher blocks from the multi-core unit.

### Claim 5 (depends on 4)

The memory device of claim 4, wherein the CTS control unit is configured to generate the CTS plain block of the block units by adding the plain text tail and a part of any one of the cipher blocks.

### Claim 6 (depends on 2)

The memory device of claim 2, wherein the input unit includes an input register, and
the input register is configured to store remaining plain blocks, while the plain blocks provided to the encryption/decryption core among the plain blocks are encrypted.

### Claim 7 (depends on 2)

The memory device of claim 2, wherein the output unit includes an output register, and
the output register is configured to store the cipher blocks, while the remaining plain blocks are encrypted before cipher blocks obtained by encrypting the plain blocks are output to the cipher text.

### Claim 8 (depends on 1)

The memory device of claim 1, wherein the input unit is configured to receive a mode signal, and
the mode signal is configured to control the input unit to generate the CTS plain blocks through the CTS calculation, when the plain text is not a multiple of the block units.

### Claim 9 (depends on 1)

The memory device of claim 1, further comprising:
a tweak core unit,
wherein the tweak core unit is provided with a tweak key and an initial vector to generate a tweak corresponding to the plain block.

### Claim 10 (depends on 1)

The memory device of claim 1, wherein the CTS core unit further comprises a CTS core control unit which is configured separately from the encryption/decryption core control unit and is configured to control the CTS core.

### Claim 11

A memory device, comprising:
an input unit configured to receive a plain text, divide the plain text, and output a first plain block, a second plain block, a third plain block and a fourth plain block;
a multi-core unit configured to receive the first plain block, the second plain block, the third plain block and the fourth plain block from the input unit, encrypt the first plain block, the second plain block, the third plain block and the fourth plain block and output them into a first cipher block, a second cipher block, a third cipher block, and a fourth cipher block; and
an output unit configured to receive the first cipher block, a second cipher block, a third cipher block and a fourth cipher block from the multi-core unit, and output a cipher text,
wherein the multi-core unit includes a first encryption/decryption core, a second encryption/decryption core different from the first encryption/decryption core, and an encryption/decryption core control unit configured to control the first encryption/decryption core and the second encryption/decryption core,
the first encryption/decryption core is configured to encrypt the first plain block to generate a first cipher block, and then encrypt the third plain block to generate a third cipher block,
the second encryption/decryption core is configured to encrypt the second plain block to generate a second cipher block, and then encrypt the fourth plain block to generate a fourth cipher block,
the input unit includes an input register, and
the input register is configured to store the first plain block, the second plain block, the third plain block and the fourth plain block, and after the first and second cipher blocks are each generated in the first and second encryption/decryption cores, the input register is configured to provide the third and fourth plain blocks to each of the first and second encryption/decryption cores.

### Claim 12 (depends on 11)

The memory device of claim 11, wherein the output unit further includes an output register, and
the output register is configured to store the first and second cipher blocks while the third to fourth plain blocks are encrypted before outputting the first and second cipher blocks to the cipher text.

### Claim 13 (depends on 11)

The memory device of claim 11, wherein the input unit is configured to receive a mode signal, and
the mode signal is configured to control the input unit to generate a CTS (Cipher Text Stealing) plain block through a CTS calculation, when the plain text is not a multiple of block units.

### Claim 14 (depends on 13)

The memory device of claim 13, wherein the CTS plain block is a data block of the block units generated by adding a part of the first cipher block and data corresponding to a part of the plain text other than a plain text body when the plain text is divided by the block units.

### Claim 15 (depends on 14)

The memory device of claim 14, further comprising:
a CTS core unit including a CTS core configured to encrypt the CTS plain block into a CTS cipher block in accordance with control of a CTS core control unit different from the encryption/decryption core control unit.

### Claim 16 (depends on 11)

The memory device of claim 11, further comprising:
a tweak core unit,
wherein the tweak core unit is configured to receive a tweak key and an initial vector to generate a tweak corresponding to the first plain block, the second plain block, the third plain block and the fourth plain block.

### Claim 17

A method for data encryption/decryption of a memory device, the method comprising:
encrypting a first plain block in a first encryption/decryption core to generate a first cipher block, and encrypting a second plain block in a second encryption/decryption core in synchronization with the first encryption/decryption core to generate a second cipher block;
dividing the second cipher block into a second cipher block head and a second cipher block tail;
adding the second cipher block tail and a plain text tail to generate a CTS (Cipher Text Stealing) plain block;
starting encryption of the CTS plain block into a CTS cipher block in a CTS core;
starting encryption of a third plain block in the first encryption/decryption core to generate a third cipher block, while the CTS plain block is encrypted into the CTS cipher block in the CTS core; and
starting encryption of a fourth plain block in the second encryption/decryption core to generate a fourth cipher block, while the CTS plain block is encrypted into the CTS cipher block in the CTS core.

### Claim 18 (depends on 17)

The method for data encryption/decryption of the memory device of claim 17, further comprising:
dividing plain text in block units to generate the first plain block, the second plain block, the third plain block and the fourth plain block;
storing the first plain block, the second plain block, the third plain block and the fourth plain block in an input register;
providing the first plain block to the first encryption/decryption core and providing the second plain block to the second encryption/decryption core;
providing the third plain block to the first encryption/decryption core, after the first and second cipher blocks are generated; and
providing the fourth plain block to the second encryption/decryption core, after the first and second cipher blocks are generated.

### Claim 19 (depends on 18)

The method for data encryption/decryption of the memory device of claim 18, further comprising:
providing the third plain block to the first encryption/decryption core, after providing the first cipher block to an output register; and
providing the fourth plain block to the second encryption/decryption core, after providing the second cipher block to the output register.

### Claim 20 (depends on 17)

The method for data encryption/decryption of the memory device of claim 17, further comprising:
receiving a tweak key and an initial vector to generate a tweak,
wherein the tweak is added with each of the first plain blocks to fourth plain blocks and the CTS plain block, before starting encryption of the first plain blocks to fourth plain blocks and the CTS plain block.
