# US 2016/0254905 A1 · Memory integrity

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

- Number: US 2016/0254905 A1
- Document ID: US20160254905A1
- Status: Published application
- Kind: A1
- Application number: 14/967,545
- Filed: 2015-12-14
- Published: 2016-09-01
- Earliest claimed: 2013-12-05
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: David M. Durham; Men Long
- Web page: https://patentgrep.com/patent/US20160254905A1

## CPC

- H04L 9/0618: {Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation}
- G06F 11/1068: {in sector programmable memories, e.g. flash disk (G06F11/1072 takes precedence)}
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 21/554: {involving event detection and direct action}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- G06F 2212/1021: Hit rate improvement
- G06F 2212/1052: Security improvement
- G11C 2029/1804: {Manipulation of word size}
- G11C 2029/3602: {Pattern generator}
- H04L 9/0637: {Modes of operation, e.g. cipher block chaining [CBC], electronic codebook [ECB] or Galois/counter mode [GCM]}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/3242: {involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC}
- H04L 9/3247: {involving digital signatures}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- 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)
- G11C: STATIC STORES (semiconductor memory devices H10B)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Systems and methods may provide for identifying unencrypted data including a plurality of bits, wherein the unencrypted data may be encrypted and stored in memory. In addition, a determination may be made as to whether the unencrypted data includes a random distribution of the plurality of bits. An integrity action may be implemented, for example, when the unencrypted data includes a random distribution of the plurality of bits.

## Claims

### Claim 1

An apparatus comprising:
memory;
a processor; and
logic to,
identify unencrypted data including a plurality of bits, wherein the unencrypted data is to be encrypted and stored in the memory,
determine whether the unencrypted data is corrupt in response to a determination whether the unencrypted data includes a random distribution of the plurality of bits, and
prevent access to at least a portion of the unencrypted data when the unencrypted data includes a random distribution of the plurality of bits and is corrupt.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the processor is to access the memory and execute an instruction to be associated with the unencrypted data, and the apparatus further includes:
an encryptor to encrypt the unencrypted data to generate ciphertext;
a decryptor to decrypt the ciphertext to generate the unencrypted data; and
a cache to store the unencrypted data.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the logic is to implement a pattern adder to add a recognizable pattern to the unencrypted data before the unencrypted data is to be encrypted to minimize a random distribution of the plurality of bits.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the logic is to set a block size of a block cipher to ensure diffusion across the unencrypted data of at least a one-bit change, wherein the block size is to be set equal to a granularity the memory is to be accessed.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the logic is to,
implement a diffuser to encrypt when a block size of a block cipher is less than a granularity the memory is to be accessed to ensure diffusion across the unencrypted data of at least a one-bit change, and
implement an inverse diffuser to decrypt when the block size of the block cipher is less than the granularity the memory is to be accessed to ensure diffusion across the unencrypted data of at least the one-bit change.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the logic is to,
implement an address scrambler to scramble a physical memory address to be utilized to access the memory, and
implement an inverse address scrambler to reverse the scramble of the physical memory address.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the logic is to,
implement a tweak function to utilize a physical memory address as a tweak to a block cipher to bind the unencrypted data with the physical memory address, and
make the determination based on the tweak.

### Claim 8 (depends on 1)

The apparatus of claim 1, where the logic is to,
make the determination whether the unencrypted data includes a random distribution of the plurality of bits after a fetch of data from the memory and decryption of the data to generate the unencrypted data, and
determine that the unencrypted data is corrupt based on the determination that the unencrypted data includes a random distribution of the plurality of bits after the fetch of the data from the memory.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein the logic is to,
make the determination whether the unencrypted data includes a random distribution of the plurality of bits after a fetch of data from the memory and decryption of the data to generate the unencrypted data,
fetch an integrity value from the memory when the unencrypted data includes a random distribution of the plurality of bits, and
determine whether the unencrypted data is corrupt based on the integrity value after the fetch of the data from the memory.

### Claim 10 (depends on 1)

The apparatus of claim 1, wherein the logic is to implement one or more of a probability density function, a threshold value, and an instruction decoder to make the determination.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the logic is to,
identify a sequence of bits of the plurality of bits which are to appear in the unencrypted data at a frequency,
count a number of instances the sequence of bits appear in the unencrypted data, and
determine that the unencrypted data does not include a random distribution of the plurality of bits when the number of instances satisfies the threshold value.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein the logic is to implement the instruction decoder is to decode the unencrypted data to recognize one or more instructions.

### Claim 13

A memory controller comprising:
logic, implemented at least partially in hardware, to,
identify unencrypted data including a plurality of bits, wherein the unencrypted data is to be encrypted and stored in memory,
determine whether the unencrypted data is corrupt in response to a determination whether the unencrypted data includes a random distribution of the plurality of bits, and
prevent access to at least a portion of the unencrypted data when the unencrypted data includes a random distribution of the plurality of bits and is corrupt.

### Claim 14 (depends on 13)

The memory controller of claim 13, wherein the logic is to one or more of,
add a recognizable pattern to the unencrypted data before the unencrypted data is to be encrypted to minimize a random distribution of the plurality of bits,
set a block size of a block cipher to ensure diffusion across the unencrypted data of at least a one-bit change, wherein the block size is to be set equal to a granularity the memory is to be accessed,
scramble a physical memory address to be utilized to access the memory, and reverse the scramble of the physical memory address, and
utilize a physical memory address as a tweak to a block cipher to bind the unencrypted data with the physical memory address, and make the determination based on the tweak.

### Claim 15 (depends on 13)

The memory controller of claim 13, wherein the logic is to,
make the determination whether the unencrypted data includes a random distribution of the plurality of bits after a fetch of data from the memory and decryption of the data to generate the unencrypted data, and
determine that the unencrypted data is corrupt based on the determination that the unencrypted data includes a random distribution of the plurality of bits after the fetch of the data from the memory.

### Claim 16 (depends on 13)

The memory controller of claim 13, wherein the logic is to,
make the determination whether the unencrypted data includes a random distribution of the plurality of bits after a fetch of data from the memory and decryption of the data to generate the unencrypted data,
fetch an integrity value from the memory when the unencrypted data includes a random distribution of the plurality of bits, and
determine whether the unencrypted data is corrupt based on the integrity value after the fetch of the data from the memory.

### Claim 17

A non-transitory computer readable storage medium comprising a set of instructions which, if executed by a processor, cause a computer to:
identify unencrypted data including a plurality of bits, wherein the unencrypted data is to be encrypted and stored in memory;
determine whether the unencrypted data is corrupt in response to a determination whether the unencrypted data includes a random distribution of the plurality of bits; and
prevent access to at least a portion of the unencrypted data when the unencrypted data includes a random distribution of the plurality of bits and is corrupt.

### Claim 18 (depends on 17)

The medium of claim 17, wherein the instructions, if executed, cause the computer to one or more of:
add a recognizable pattern to the unencrypted data before the unencrypted data is to be encrypted to minimize a random distribution of the plurality of bits;
set a block size of a block cipher to ensure diffusion across the unencrypted data of at least a one-bit change, wherein the block size is to be set equal to a granularity the memory is to be accessed;
scramble a physical memory address to be utilized to access the memory, and reverse the scramble of the physical memory address; and
utilize a physical memory address as a tweak to a block cipher to bind the unencrypted data with the physical memory address, and make the determination based on the tweak.

### Claim 19 (depends on 17)

The medium of claim 17, wherein the instructions, if executed, cause the computer to:
make the determination whether the unencrypted data includes a random distribution of the plurality of bits after a fetch of data from the memory and decryption of the data to generate the unencrypted data; and
determine that the unencrypted data is corrupt based on the determination that the unencrypted data includes a random distribution of the plurality of bits after the fetch of the data from the memory.

### Claim 20 (depends on 17)

The medium of claim 17, wherein the instructions, if executed, cause the computer to:
make the determination whether the unencrypted data includes a random distribution of the plurality of bits after a fetch of data from the memory and decryption of the data to generate the unencrypted data;
fetch an integrity value from the memory when the unencrypted data includes a random distribution of the plurality of bits; and
determine whether the unencrypted data is corrupt based on the integrity value after the fetch of the data from the memory.
