# US 2024/0005043 A1 · Unique Content Determination of Structured Format Documents

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

- Number: US 2024/0005043 A1
- Document ID: US20240005043A1
- Status: Published application
- Kind: A1
- Application number: 18/250,644
- Filed: 2021-11-09
- Published: 2024-01-04
- Earliest claimed: 2020-11-09
- Assignees: Connecting Software Inc.
- Applicants: Connecting Software Inc.
- Inventors: Thomas BERNDORFER; Stanislav PERNECKÝ
- Web page: https://patentgrep.com/patent/US20240005043A1

## CPC

- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method of generating a digest for a structured document is provided including selecting a subset of a plurality of component parts of a OOXML document wherein at least one of the selected subset of component parts is an XML file and wherein selecting the subset excludes files named “docProps\app.xml”, “docProps\core.xml”, and “docProps\custom.xml”, ordering the selected subset of component parts, processing a relationships file by removing at least one relationship entry that references a component part not included in the selected subset and sorting the relationships by identifier value, generating a component hash value for each of the selected subset of component parts; and converting each component hash value into a byte array and appending the byte array to a canonical byte stream.

## Claims

### Claim 1

A computer-implemented method of generating a digest for a structured document comprising:
selecting a subset of a plurality of component parts of a OOXML document wherein at least one of the selected subset of component parts is an XML file and wherein selecting the subset excludes files named “docProps\app.xml”, “docProps\core.xml”, and “docProps\custom.xml”;
ordering the selected subset of component parts;
processing a relationships file from the selected subset of component parts as follows:
remove at least one relationship entry that references a component part not included in the selected subset, and
sort the relationships by identifier value;
generating a component hash value for each of the selected subset of component parts; and
converting each component hash value into a byte array and appending the byte array to a canonical byte stream.

### Claim 2

A computer-implemented method of generating a digest for a structured document comprising:
selecting a subset of a plurality of component parts of a structured document;
ordering the subset of component parts;
generating a component hash value for each of the subset of component parts; and
converting each component hash value into a byte array and appending the byte array to a canonical byte stream.

### Claim 3 (depends on 1)

The method of claim 1, wherein the structured document is an OOXML file, which is a ZIP archive and each of the plurality of component parts is a file.

### Claim 4 (depends on 1)

The method of claim 1, further comprising calculating an overall hash value for the canonical byte stream.

### Claim 5 (depends on 1)

The method of claim 1, wherein the selected subset of component parts does not include any of the following dates:
a date on which the structured document was created;
a date on which the structured document was last printed;
a date on which the structured document was last edited; and
a date on which the structured document was last opened.

### Claim 6 (depends on 2)

The method of claim 2, wherein the selected subset of component parts includes a relationships file named “_rels\.rels” wherein the relationships file contains a relationship of type “officeDocument”.

### Claim 7 (depends on 1)

The method of claim 1, wherein the selected subset of component parts does not include a document named “custom.xml”.

### Claim 8 (depends on 1)

The method of claim 1, further comprising.
storing the overall hash value for the canonical byte stream in a record;
selecting a second subset of the second plurality component parts;
ordering a second plurality of component parts of a second structured document;
generating a second component hash value for each of the second subset of component parts;
converting each second hash value into a second byte array and appending the second byte array to a second canonical byte stream;
calculating a second overall hash value for the second canonical byte stream; and
determining the structured document is substantially identical to the second structured document if the second hash value for the second canonical byte stream matches the overall hash value in the record.

### Claim 9

A non-transitory computer readable medium comprising executable software instructions that when executed:
select a subset of a plurality of component parts of a structured document;
order the subset of component parts;
generate a component hash value for each of the subset of component parts; and
convert each component hash value into a byte array and appending the byte array to a canonical byte stream.

### Claim 10 (depends on 9)

The medium of claim 9, wherein the structured document is an OOXML file, which is a ZIP archive and each of the plurality of component parts is a file.

### Claim 11 (depends on 9)

The medium of claim 9, further comprising instructions that when executed calculate an overall hash value for the canonical byte stream.

### Claim 12 (depends on 9)

The medium of claim 9, wherein the selected subset of component parts does not include any of the following dates:
a date on which the structured document was created;
a date on which the structured document was last printed;
a date on which the structured document was last edited; and
a date on which the structured document was last opened.

### Claim 13 (depends on 10)

The medium of claim 10, wherein the selected subset of component parts includes a relationships file named “_rels\.rels” wherein the relationships file contains a relationship of type “officeDocument”.

### Claim 14 (depends on 9)

The medium of claim 9, wherein the selected subset of component parts does not include a document named “custom.xml”.

### Claim 15 (depends on 9)

The medium of claim 9, further comprising instructions that when executed:
store the overall hash value for the canonical byte stream in a record;
select a second subset of the second plurality component parts;
order a second plurality of component parts of a second structured document;
generate a second component hash value for each of the second subset of component parts;
convert each second hash value into a second byte array and append the second byte array to a second canonical byte stream;
calculate a second overall hash value for the second canonical byte stream; and
determine the structured document is substantially identical to the second structured document if the second hash value for the second canonical byte stream matches the overall hash value in the record.
