# US 2020/0287709 A1 · Secure paging with page change detection

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

- Number: US 2020/0287709 A1
- Document ID: US20200287709A1
- Status: Published application
- Kind: A1
- Application number: 16/296,303
- Filed: 2019-03-08
- Published: 2020-09-10
- Earliest claimed: 2019-03-08
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jonathan D. Bradbury; Christian Borntraeger; Heiko Carstens; Martin Schwidefsky; Reinhard Theodor Buendgen
- Web page: https://patentgrep.com/patent/US20200287709A1

## CPC

- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 12/1425: {the protection being physical, e.g. cell, word, block}
- G06F 12/145: {the protection being virtual, e.g. for virtual blocks or segments before a translation mechanism}
- G06F 21/78: to assure secure storage of data (address-based protection against unauthorised use of memory G06F12/14; record carriers for use with machines and with at least a part designed to carry digital markings G06K19/00)
- H04L 9/3236: {using cryptographic hash functions}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2212/1052: Security improvement
- G06F 2212/151: Emulated environment, e.g. virtual machine
- 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

According to one or more embodiments of the present invention, a computer implemented method includes computing a hash value of a page of memory of a computer system and comparing the hash value with a previously computed hash value of the page. A per-encryption value per page can be used in encrypting the page based on determining that the hash value matches the previously computed hash value. A modified value of the per-encryption value per page can be used in encrypting the page based on determining that the hash value mismatches the previously computed hash value.

## Claims

### Claim 1

A method comprising:
computing a hash value of a page of memory of a computer system;
comparing the hash value with a previously computed hash value of the page;
using a per-encryption value per page in encrypting the page based on determining that the hash value matches the previously computed hash value; and
using a modified value of the per-encryption value per page in encrypting the page based on determining that the hash value mismatches the previously computed hash value.

### Claim 2 (depends on 1)

The method of claim 1, wherein the encrypting is performed by a secure control interface responsive to a request of a host to convert the page from a secure page to a non-secure page.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
providing the non-secure page as encrypted to the host for storage.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
storing the hash value in a secure table of the secure control interface.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
converting the non-secure page to the secure page;
decrypting, by the secure interface control, the secure page based on the per-encryption value associated with the page to produce a decrypted page;
computing a hash value of the decrypted page;
comparing the hash value of the decrypted page with the hash value of the page as stored in the secure table; and
validating the decrypted page based on determining that the hash value of the decrypted page matches the hash value stored in the secure table.

### Claim 6 (depends on 2)

The method of claim 2, wherein the secure interface control comprises firmware, hardware, or a combination of firmware and hardware; the secure page is assigned to a secure container or a secure virtual machine managed by the host; and the host is a hypervisor or an operating system.

### Claim 7 (depends on 1)

The method of claim 1, wherein encrypting the page incorporates a combination of an address value associated with the page, one or more random values, and the per-encryption value with a cryptographically-secure hash function.

### Claim 8 (depends on 1)

The method of claim 1, wherein an initial value of the per-encryption value is established before the per-encryption value is used.

### Claim 9

A system comprising:
a memory;
a processing unit; and
a secure interface control interfaced with the processing unit and the memory, the secure interface control configured to perform operations comprising:
computing a hash value of a page of the memory;
comparing the hash value with a previously computed hash value of the page;
using a per-encryption value per page in encrypting the page based on determining that the hash value matches the previously computed hash value; and
using a modified value of the per-encryption value per page in encrypting the page based on determining that the hash value mismatches the previously computed hash value.

### Claim 10 (depends on 9)

The system of claim 9, wherein the encrypting is performed by the secure control interface responsive to a request of a host to convert the page from a secure page to a non-secure page.

### Claim 11 (depends on 10)

The system of claim 10, wherein the operations further comprise providing the non-secure page as encrypted to the host for storage.

### Claim 12 (depends on 11)

The system of claim 11, wherein the operations further comprise storing the hash value in a secure table of the secure control interface.

### Claim 13 (depends on 12)

The system of claim 12, wherein the operations further comprise:
converting the non-secure page to the secure page;
decrypting, by the secure interface control, the secure page based on the per-encryption value associated with the page to produce a decrypted page;
computing a hash value of the decrypted page;
comparing the hash value of the decrypted page with the hash value of the page as stored in the secure table; and
validating the decrypted page based on determining that the hash value of the decrypted page matches the hash value stored in the secure table.

### Claim 14 (depends on 10)

The system of claim 10, wherein the secure interface control comprises firmware, hardware, or a combination of firmware and hardware; the secure page is assigned to a secure container or a secure virtual machine managed by the host; and the host is a hypervisor or an operating system.

### Claim 15 (depends on 9)

The system of claim 9, wherein encrypting the page incorporates a combination of an address value associated with the page, one or more random values, and the per-encryption value with a cryptographically-secure hash function.

### Claim 16 (depends on 9)

The system of claim 9, wherein an initial value of the per-encryption value is established before the per-encryption value is used.

### Claim 17

A computer program product comprising a computer readable storage medium, the computer readable storage medium comprising computer executable instructions, which when executed perform a method comprising:
computing a hash value of a page of memory of a computer system;
comparing the hash value with a previously computed hash value of the page;
using a per-encryption value per page in encrypting the page based on determining that the hash value matches the previously computed hash value; and
using a modified value of the per-encryption value per page in encrypting the page based on determining that the hash value mismatches the previously computed hash value.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the encrypting is performed by a secure control interface responsive to a request of a host to convert the page from a secure page to a non-secure page.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the executable instructions when executed further perform the method comprising:
providing the non-secure page as encrypted to the host for storage.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the executable instructions when executed further perform the method comprising:
storing the hash value in a secure table of the secure control interface.

### Claim 21 (depends on 20)

The computer program product of claim 20, wherein the executable instructions when executed further perform the method comprising:
converting the non-secure page to the secure page;
decrypting, by the secure interface control, the secure page based on the per-encryption value associated with the page to produce a decrypted page;
computing a hash value of the decrypted page;
comparing the hash value of the decrypted page with the hash value of the page as stored in the secure table; and
validating the decrypted page based on determining that the hash value of the decrypted page matches the hash value stored in the secure table.

### Claim 22 (depends on 18)

The computer program product of claim 18, wherein the secure page is assigned to a secure container or a secure virtual machine managed by the host, and the host is a hypervisor or an operating system.

### Claim 23 (depends on 17)

The computer program product of claim 17, wherein encrypting the page incorporates a combination of an address value associated with the page, one or more random values, and the per-encryption value with a cryptographically-secure hash function.

### Claim 24 (depends on 17)

The computer program product of claim 17, wherein an initial value of the per-encryption value is established before the per-encryption value is used.
