Encrypted and compressed data transmission with padding
AssigneeInternational Business Machines Corporation
InventorsMichael Factor, Danny Harnik, Ronen Itshak Kat
Life of this patent
Estimating the term…
Abstract
In some examples, a system for executing instructions can include a processor to detect data to be transmitted to a storage device in response to a write operation. The processor can also determine that the data comprises a compressible characteristic that enables compression of the data to a size below a threshold value. Additionally, the processor can generate a modified data block by encrypting the compressed data, and adding a padding to the compressed and encrypted data. Furthermore, the processor can transmit the modified data block to the storage device.
Claims17
A system for writing data comprising:
- a memory device to provide memory space for the execution of instructions;
- and
- a hardware processor to execute the instructions to:
- detect data to be transmitted to a storage device in response to a write operation;
- determine that the data comprises a compressible characteristic that enables compression of the data to a size below a threshold value;
- add a random number of bytes to the data prior to encryption, and add a value to the data indicating the number of bytes added to the data;
- generate a modified data block by encrypting the compressed data, and add a padding to the compressed and encrypted data, wherein to add the padding the hardware processor alternates, for consecutive data blocks, between adding the padding to the end of the compressed and encrypted data and adding the padding to the beginning of the compressed and encrypted data;
- and
- transmit the modified data block to the storage device.
A system for reading data comprising:
- a memory device to provide memory space for the execution of instructions;
- and
- a hardware processor to execute the instructions to:
- send a request for data to a storage device and extract raw data from the requested data, wherein to extract the raw data the hardware processor is to:
- determine that the requested data comprises a padding in response to receiving the requested data, wherein a position of the padding alternates, for consecutive data blocks, between being at the end of the requested data and being at the beginning of the requested data;
- determine a number of bytes to remove from the data based on a length of the padding and the position of the padding;
- remove the number of bytes corresponding to the padding, and decrypt a portion of the requested data excluding the padding;
- determine a number of random bytes that have been added to the decrypted portion of the requested data;
- decompress the decrypted portion of the requested data after removing the random bytes from the decrypted portion;
- and
- execute an instruction with the raw data.
A computer program product for executing instructions comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, and wherein the program instructions are executable by a processor to cause the processor to:
- detect data to be transmitted to a storage device in response to a write operation;
- determine that the data comprises a compressible characteristic that enables compression of the data to a size below a threshold value;
- add a random number of bytes to the data prior to encryption, and add a value to the data indicating the number of bytes added to the data;
- generate a modified data block by encrypting the compressed data, and add a padding to the compressed and encrypted data, wherein to add the padding the hardware processor alternates, for consecutive data blocks, between adding the padding to the end of the compressed and encrypted data and adding the padding to the beginning of the compressed and encrypted data;
- and
- transmit the modified data block to the storage device.
Dependencies are inferred from the claim text.