Patent ID: 11917072
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
Field: Digital communication (Electrical engineering)
Classification: CPC H  G | IPC G  H

Claim 0:
1. A computer-implemented method, comprising:
compressing an uncompressed instance of data to create a compressed instance of data;
in response to determining that a size of the compressed instance of data is less than a predetermined threshold, encrypting the compressed instance of data, wherein the compressed instance of data is encrypted utilizing an encryption technique selected from the group consisting of: wide-block encryption and an expanding encryption mode which includes an initialization vector;
creating a message authentication code (MAC) for the encrypted compressed instance of data, wherein the MAC includes a keyed-hash message authentication code or a hash-based message authentication code;
adding at least a zero pad, a length field, and the MAC to the encrypted compressed instance of data to create a formatted string having a length equal to a length of the uncompressed instance of data, wherein the predetermined threshold includes a size of a sum of the length field, a predetermined minimum zero pad amount, and the MAC;
comparing the formatted string to other formatted strings stored in a data storage to determine whether any duplicates exist in the data storage;
in response to determining that a duplicate exists in the data storage, removing the duplicate;
and
in response to determining that the size of the compressed instance of data is greater than the predetermined threshold:
abandoning the compressed instance of data, and
encrypting the uncompressed instance of data to create the formatted string, wherein the encrypted uncompressed instance of data has the same length as the uncompressed instance of data.