# US 2021/0081544 A1 · Dynamic compression with dynamic multi-stage encryption for a data storage system

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

- Number: US 2021/0081544 A1
- Document ID: US20210081544A1
- Status: Published application
- Kind: A1
- Application number: 16/569,230
- Filed: 2019-09-12
- Published: 2021-03-18
- Earliest claimed: 2019-09-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Matthew G. Borlick; Alistair Leask Symon; Micah Robison; Brian Anthony Rinaldi; Lokesh M. Gupta; Mark Elliott Hack
- Web page: https://patentgrep.com/patent/US20210081544A1

## CPC

- G06F 21/602: {Providing cryptographic facilities or services}
- H03M 7/30: Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- G06F 12/0646: {Configuration or reconfiguration}
- G06F 12/0866: for peripheral storage systems, e.g. disk cache
- G06F 12/0886: Variable-length word access
- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- H03M 7/3091: {Data deduplication}
- G06F 2212/1052: Security improvement
- G06F 2212/401: Compressed data
- G06F 2212/402: Encrypted data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

Dynamic compression with dynamic multi-stage encryption for a data storage system in accordance with the present description includes, in one aspect of the present description, preserves end-to-end encryption between a host and a storage controller while compressing data which was received from the host in encrypted but uncompressed form, using MIPs and other processing resources of the storage controller instead of the host. In one embodiment, the storage controller decrypts encrypted but uncompressed data received from the host to unencrypted data and compresses the unencrypted data to compressed data. The storage controller then encrypts the compressed data to encrypted, compressed data and stores the encrypted, compressed data in a storage device controlled by the storage controller. Other aspects and advantages may be realized, depending upon the particular application.

## Claims

### Claim 1

A computer program product configured for use with a computer system having a host, and a data storage system having a storage controller and at least one storage unit controlled by the storage controller and configured to store data, wherein the computer system has at least one processor, and wherein the computer program product comprises a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor of the computer system to cause computer system operations, the computer system operations comprising:
a host transferring encrypted data to a storage controller controlling a storage device; and
the storage controller:
decrypting the encrypted data to unencrypted data;
compressing the unencrypted data to compressed data;
encrypting the compressed data to encrypted, compressed data; and
storing the encrypted, compressed data in the storage device.

### Claim 2 (depends on 1)

The computer program product of claim 1 wherein the decrypting the encrypted data to unencrypted data includes decrypting the encrypted data to unencrypted data in a volatile memory area of the storage controller and securely erasing the volatile memory area in a secure data overwrite process to ensure erasure of unencrypted data resultant from the decrypting.

### Claim 3 (depends on 1)

The computer program product of claim 1 wherein the computer system operations further comprise:
receiving by the storage controller, a compression status flag associated with the encrypted data from the host, and determining as a function of a state of the compression status flag whether to decrypt, compress and encrypt again, the encrypted data received from the host and associated with the compression status flag.

### Claim 4 (depends on 3)

The computer program product of claim 3 wherein the compression status flag has a state which indicates at least one of whether encrypted data received from the host and associated with the compression status flag is 1) compressed, and 2) compressible.

### Claim 5 (depends on 1)

The computer program product of claim 1 wherein the computer system operations further comprise the storage controller:
receiving a read request from a host to read encrypted data stored in the storage device;
transferring encrypted read data from the storage device to the storage controller;
determining whether the encrypted read data read from the storage device has been compressed, and if so:
decrypting the encrypted read data to unencrypted read data;
de-compressing the unencrypted read data to uncompressed read data;
encrypting the uncompressed read data to encrypted, uncompressed read data; and
transferring the encrypted, uncompressed read data to the host.

### Claim 6 (depends on 5)

The computer program product of claim 5 wherein the computer system operations further comprise the storage controller storing a compression status tag in association with encrypted data stored in the storage device wherein the compression status tag has a state which indicates whether associated encrypted data stored in the storage device is compressed, and wherein determining whether encrypted read data read from the storage device has been compressed, is a function of the state of the associated compression status tag which indicates whether associated encrypted data stored in the storage device is compressed.

### Claim 7 (depends on 1)

The computer program product of claim 1 wherein the computer system operations further comprise the host determining as a function of a comparison of available resources of the host and the storage controller, whether to compress unencrypted data at the host prior to encrypting and transferring encrypted data to the storage controller, and whether to bypass compressing unencrypted data at the host prior to encrypting and transferring encrypted data to the storage controller.

### Claim 8

A method, comprising:
a host transferring encrypted data to a storage controller controlling a storage device; and
the storage controller:
decrypting the encrypted data to unencrypted data;
compressing the unencrypted data to compressed data;
encrypting the compressed data to encrypted, compressed data; and
storing the encrypted, compressed data in the storage device.

### Claim 9 (depends on 8)

The method of claim 8 wherein the decrypting the encrypted data to unencrypted data includes decrypting the encrypted data to unencrypted data in a volatile memory area of the storage controller and securely erasing the volatile memory area in a secure data overwrite process to ensure erasure of unencrypted data resultant from the decrypting.

### Claim 10 (depends on 8)

The method of claim 8 further comprising:
receiving by the storage controller, a compression status flag associated with the encrypted data from the host, and determining as a function of a state of the compression status flag whether to decrypt, compress and encrypt again, the encrypted data received from the host and associated with the compression status flag.

### Claim 11 (depends on 10)

The method of claim 10 wherein the compression status flag has a state which indicates at least one of whether encrypted data received from the host and associated with the compression status flag is 1) compressed, and 2) compressible.

### Claim 12 (depends on 8)

The method of claim 8 further comprising the storage controller:
receiving a read request from a host to read encrypted data stored in the storage device;
transferring encrypted read data from the storage device to the storage controller;
determining whether the encrypted read data read from the storage device has been compressed, and if so:
decrypting the encrypted read data to unencrypted read data;
de-compressing the unencrypted read data to uncompressed read data;
encrypting the uncompressed read data to encrypted, uncompressed read data; and
transferring the encrypted, uncompressed read data to the host.

### Claim 13 (depends on 12)

The method of claim 12 further comprising the storage controller storing a compression status tag in association with encrypted data stored in the storage device wherein the compression status tag has a state which indicates whether associated encrypted data stored in the storage device is compressed, and wherein determining whether encrypted read data read from the storage device has been compressed, is a function of the state of the associated compression status tag which indicates whether associated encrypted data stored in the storage device is compressed.

### Claim 14 (depends on 8)

The method of claim 8 further comprising the host determining as a function of a comparison of available resources of the host and the storage controller, whether to compress unencrypted data at the host prior to encrypting and transferring encrypted data to the storage controller, and whether to bypass compressing unencrypted data at the host prior to encrypting and transferring encrypted data to the storage controller.

### Claim 15

A computer system, comprising:
a host;
a data storage system having a storage controller and at least one storage unit controlled by the storage controller and configured to store data,
wherein at least one of the host and the data storage system of the computer system has at least one processor and a computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor of the computer system to cause computer system operations, the computer system operations comprising:
the host transferring encrypted data to the storage controller controlling the storage device; and
the storage controller:
decrypting the encrypted data to unencrypted data;
compressing the unencrypted data to compressed data;
encrypting the compressed data to encrypted, compressed data; and
storing the encrypted, compressed data in the storage device.

### Claim 16 (depends on 15)

The system of claim 15 wherein the decrypting the encrypted data to unencrypted data includes decrypting the encrypted data to unencrypted data in a volatile memory area of the storage controller and securely erasing the volatile memory area in a secure data overwrite process to ensure erasure of unencrypted data resultant from the decrypting.

### Claim 17 (depends on 15)

The system of claim 15 wherein the computer system operations further comprise:
receiving by the storage controller, a compression status flag associated with the encrypted data from the host, and determining as a function of a state of the compression status flag whether to decrypt, compress and encrypt again, the encrypted data received from the host and associated with the compression status flag.

### Claim 18 (depends on 17)

The system of claim 17 wherein the compression status flag has a state which indicates at least one of whether encrypted data received from the host and associated with the compression status flag is 1) compressed, and 2) compressible.

### Claim 19 (depends on 15)

The system of claim 15 wherein the computer system operations further comprise the storage controller:
receiving a read request from a host to read encrypted data stored in the storage device;
transferring encrypted read data from the storage device to the storage controller;
determining whether the encrypted read data read from the storage device has been compressed, and if so:
decrypting the encrypted read data to unencrypted read data;
de-compressing the unencrypted read data to uncompressed read data;
encrypting the uncompressed read data to encrypted, uncompressed read data; and
transferring the encrypted, uncompressed read data to the host.

### Claim 20 (depends on 19)

The system of claim 19 wherein the computer system operations further comprise the storage controller storing a compression status tag in association with encrypted data stored in the storage device wherein the compression status tag has a state which indicates whether associated encrypted data stored in the storage device is compressed, and wherein determining whether encrypted read data read from the storage device has been compressed, is a function of the state of the associated compression status tag which indicates whether associated encrypted data stored in the storage device is compressed.

### Claim 21 (depends on 15)

The system of claim 15 wherein the computer system operations further comprise the host determining as a function of a comparison of available resources of the host and the storage controller, whether to compress unencrypted data at the host prior to encrypting and transferring encrypted data to the storage controller, and whether to bypass compressing unencrypted data at the host prior to encrypting and transferring encrypted data to the storage controller.
