# US 2019/0379547 A1 · Message authentication code (mac) based compression and decompression

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

- Number: US 2019/0379547 A1
- Document ID: US20190379547A1
- Status: Published application
- Kind: A1
- Application number: 16/370,108
- Filed: 2019-03-29
- Published: 2019-12-12
- Earliest claimed: 2019-03-29
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: David M. Durham
- Web page: https://patentgrep.com/patent/US20190379547A1

## CPC

- H04L 9/3242: {involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC}
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- H04L 63/123: {received data contents, e.g. message integrity}
- H04L 69/04: Protocols for data compression, e.g. ROHC
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments are generally directed to message authentication code (MAC) based compression and decompression. An embodiment of an apparatus includes one or processors to process data; and a computer memory; wherein the one or more processors are to perform compression of a fixed transmission or storage unit, the transmission or storage unit including multiple slots, the compression of the transmission or storage unit including the one or more processors to calculate a MAC for data in the transmission or storage unit, determine whether a special value is present in any slot of the transmission or storage unit, and upon determining that the special value is present in a respective slot of the transmission or storage unit, remove the special value from the transmission or storage unit, shift remaining data of the transmission or storage unit to provide room in a first slot the transmission or storage unit, and insert the MAC in the first slot to generate a compressed transmission or storage unit.

## Claims

### Claim 1

An apparatus comprising:
one or more processors to process data; and
a computer memory;
wherein the one or more processors are to perform compression of a fixed transmission or storage unit including a plurality of slots, the compression of the transmission or storage unit including the one or more processors to:
calculate a message authentication code (MAC) for data in the transmission or storage unit,
determine whether a special value is present in any slot of the plurality of slots of the transmission or storage unit, and
upon determining that the special value is present in a respective slot of the plurality of slots, remove the special value from the transmission or storage unit, shift remaining data of the transmission or storage unit to provide room in a first slot of the plurality of slots, and insert the MAC in the first slot to generate a modified transmission or storage unit.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein, upon determining that the special value is not present in any of the slots of the transmission or storage unit, the one or more processors are further to remove data from the first slot of the plurality of slots, store the data from the first slot in a first table, and insert the MAC in the first slot.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the one or more processors are further to determine whether a MAC collision can occur with the special value in a different slot than the respective slot containing the special value in the transmission or storage unit.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein upon the determining that a MAC collision can occur, the one or more processors are further to store a reserved value in place of the MAC in the transmission or storage unit, and store the MAC in a second table.

### Claim 5 (depends on 2)

The apparatus of claim 2, wherein one or more processors are further to encrypt the transmission or storage unit with the MAC.

### Claim 6 (depends on 2)

The apparatus of claim 2, wherein the one or more processors are further to perform decompression of the modified transmission or storage unit, the decompression of the modified transmission or storage unit including the one or more processors to:
obtain a MAC value from the first slot of the modified transmission or storage unit;
insert the special value in a slot of the modified transmission or storage unit and calculate a MAC for the modified transmission or storage unit including the special value;
compare the MAC value obtained from the first slot of the modified transmission or storage unit to the calculated MAC for the modified transmission or storage unit including the special value; and
upon determining that the MAC value from the first slot matches the calculated MAC for the modified transmission or storage unit including the special value, conclude that the transmission or storage unit has been reconstructed.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein, upon determining that the MAC value from the first slot does not match the calculated MAC for the modified transmission or storage unit including the special value, the one or more processors to insert the special value in another slot of the modified transmission or storage unit, and repeat the calculation of the MAC and the comparison of the MAC value obtained from the first slot of the modified transmission or storage unit to the calculated MAC for the modified transmission or storage unit including the special value.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein, upon the determining that all slots of the plurality of slots of the modified transmission or storage unit have been attempted, the one or more processors to:
load data from the first table into the first slot of the modified transmission or storage unit;
calculate a MAC for the modified transmission or storage unit including the data from the first table;
compare the MAC value obtained from the first slot of the modified transmission or storage unit to the calculated MAC for the modified transmission or storage unit including the data from the first table; and
upon determining that the MAC value from the first slot matches the calculated MAC for the modified transmission or storage unit including the data from the first table, conclude that the transmission or storage unit has been reconstructed.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein, upon determining that the MAC value from the first slot does not match the calculated MAC for the modified transmission or storage unit including the data from the first table, report an integrity error for the transmission or storage unit.

### Claim 10 (depends on 1)

The apparatus of claim 1, further comprising one or more caches to store data for the one or more processors, wherein the transmission or storage unit is a cacheline.

### Claim 11

One or more non-transitory computer-readable storage mediums having stored thereon executable computer program instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
calculating a message authentication code (MAC) for data in a fixed transmission or storage unit, the transmission or storage unit including a plurality of slots;
determining whether a special value is present in any slot of the plurality of slots of the transmission or storage unit, and
upon determining that the special value is present in a respective slot of the plurality of slots, removing the special value from the transmission or storage unit, shifting remaining data of the transmission or storage unit to provide room in a first slot of the plurality of slots of the transmission or storage unit, and inserting the MAC in the first slot to generate a modified transmission or storage unit.

### Claim 12 (depends on 11)

The one or more mediums of claim 11, further comprising executable computer program instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
upon determining that the special value is not present in any of the slots of the transmission or storage unit, removing data from the first slot of the plurality of slots, storing the data from the first slot in a first table, and inserting the MAC in the first slot.

### Claim 13 (depends on 12)

The one or more mediums of claim 12, further comprising executable computer program instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
determining whether a MAC collision can occur with the special value in a different slot than the respective slot containing the special value in the transmission or storage unit.

### Claim 14 (depends on 13)

The one or more mediums of claim 13, further comprising executable computer program instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
upon determining that a MAC collision can occur, storing a reserved value in place of the MAC in the transmission or storage unit, and storing the MAC in a second table.

### Claim 15 (depends on 12)

The one or more mediums of claim 12, further comprising executable computer program instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
encrypting the transmission or storage unit with the MAC.

### Claim 16 (depends on 12)

The one or more mediums of claim 12, further comprising executable computer program instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
obtaining a MAC value from the first slot of the modified transmission or storage unit;
inserting the special value in a slot of the modified transmission or storage unit and calculate a MAC for the modified cacheline including the special value;
comparing the MAC value obtained from the first slot of the modified transmission or storage unit to the calculated MAC for the modified transmission or storage unit including the special value; and
upon determining that the MAC value from the first slot matches the calculated MAC for the modified transmission or storage unit including the special value, concluding that the transmission or storage unit has been reconstructed.

### Claim 17 (depends on 16)

The one or more mediums of claim 16, further comprising executable computer program instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
upon determining that the MAC value from the first slot does not match the calculated MAC for the modified transmission or storage unit including the special value, inserting the special value in another slot of the modified transmission or storage unit and repeating the calculation of the MAC and the comparison of the MAC value obtained from the first slot of the modified transmission or storage unit to the calculated MAC for the modified transmission or storage unit including the special value.

### Claim 18 (depends on 17)

The one or more mediums of claim 17, further comprising executable computer program instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
upon determining that all slots of the plurality of slots of the modified transmission or storage unit have been attempted:
loading data from the first table into the first slot of the modified transmission or storage unit;
calculating a MAC for the modified transmission or storage unit including the data from the first table;
comparing the MAC value obtained from the first slot of the modified transmission or storage unit to the calculated MAC for the modified transmission or storage unit including the data from the first table; and
upon determining that the MAC value from the first slot matches the calculated MAC for the modified transmission or storage unit including the data from the first table, concluding that the transmission or storage unit has been reconstructed.

### Claim 19 (depends on 18)

The one or more mediums of claim 18, further comprising executable computer program instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
upon determining that the MAC value from the first slot does not match the calculated MAC for the modified transmission or storage unit including the data from the first table, reporting an integrity error for the transmission or storage unit.

### Claim 20

A method comprising:
calculating a message authentication code (MAC) for data in a fixed transmission or storage unit, the transmission or storage unit including a plurality of slots;
determining whether a special value is present in any slot of the plurality of slots of the transmission or storage unit, and
upon determining that the special value is present in a respective slot of the plurality of slots, removing the special value from the transmission or storage unit, shifting remaining data of the transmission or storage unit to provide room in a first slot of the plurality of slots of the transmission or storage unit, and inserting the MAC in the first slot to generate a modified transmission or storage unit.

### Claim 21 (depends on 20)

The method of claim 20, further comprising:
upon determining that the special value is not present in any of the slots of the transmission or storage unit, removing data from the first slot of the plurality of slots, storing the data from the first slot in a first table, and inserting the MAC in the first slot.

### Claim 22 (depends on 20)

The method of claim 20, further comprising:
obtaining a MAC value from the first slot of the modified transmission or storage unit;
inserting the special value in a slot of the modified transmission or storage unit and calculate a MAC for the modified transmission or storage unit including the special value;
comparing the MAC value obtained from the first slot of the modified transmission or storage unit to the calculated MAC for the modified transmission or storage unit including the special value; and
upon determining that the MAC value from the first slot matches the calculated MAC for the modified transmission or storage unit including the special value, concluding that the transmission or storage unit has been reconstructed.

### Claim 23 (depends on 22)

The method of claim 22, further comprising:
upon determining that the MAC value from the first slot does not match the calculated MAC for the modified transmission or storage unit including the special value, inserting the special value in another slot of the modified transmission or storage unit and repeating the calculation of the MAC and the comparison of the MAC value obtained from the first slot of the modified transmission or storage unit to the calculated MAC for the modified transmission or storage unit including the special value.

### Claim 24 (depends on 23)

The method of claim 23, further comprising:
upon determining that all slots of the plurality of slots of the modified transmission or storage unit have been attempted:
loading data from the first table into the first slot of the modified transmission or storage unit;
calculating a MAC for the modified transmission or storage unit including the data from the first table;
comparing the MAC value obtained from the first slot of the modified transmission or storage unit to the calculated MAC for the modified transmission or storage unit including the data from the first table; and
upon determining that the MAC value from the first slot matches the calculated MAC for the modified cacheline including the data from the first table, concluding that the transmission or storage unit has been reconstructed.
