# US 2021/0173661 A1 · An attestation protocol between a host system and a data processing accelerator

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

- Number: US 2021/0173661 A1
- Document ID: US20210173661A1
- Status: Published application
- Kind: A1
- Application number: 16/315,987
- Filed: 2019-01-04
- Published: 2021-06-10
- Earliest claimed: 2019-01-04
- Assignees: Baidu USA LLC
- Applicants: Baidu USA LLC
- Inventors: Yueqiang CHENG; Yong LIU; Tao WEI; Jian OUYANG
- Web page: https://patentgrep.com/patent/US20210173661A1

## CPC

- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 9/3877: {using a secondary processor, e.g. coprocessor (peripheral processor G06F13/12)}
- G06F 9/545: {where tasks reside in different layers, e.g. user- and kernel-space}
- G06F 13/42: Bus transfer protocol, e.g. handshake; Synchronisation
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06N 20/00: Machine learning
- H04L 9/3247: {involving digital signatures}
- H04L 9/3263: {involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements (network architectures or network communication protocols for supporting authentication of entities using certificates in a packet data network H04L63/0823)}
- H04L 63/045: {wherein the sending and receiving network entities apply hybrid encryption, i.e. combination of symmetric and asymmetric encryption (cryptographic mechanisms or cryptographic arrangements using a plurality of keys or algorithms H04L9/14)}
- H04L 63/0823: {using certificates (cryptographic mechanisms or cryptographic arrangements for entity authentication involving certificates H04L9/3263)}
- G06F 21/575: {Secure boot}
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 2209/127: Trusted platform modules [TPM]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

According to one embodiment, a system receives, at a host system a public attestation key (PK_ATT) or a signed PK_ATT from a data processing (DP) accelerator over a bus. The system verifies the PK_ATT using a public root key (PK_RK) associated with the DP accelerator. In response to successfully verifying the PK_ATT, the system transmits a kernel identifier (ID) to the DP accelerator to request attesting a kernel object stored in the DP accelerator. In response to the system receives a kernel digest or a signed kernel digest corresponding to the kernel object form the DP accelerator, verifying the kernel digest using the PK_ATT. The system sends the verification results to the DP accelerator for the DP accelerator to access the kernel object based on the verification results.

## Claims

### Claim 1

A computer-implemented method for attestation between a host system and a data processing accelerator, the method comprising:
receiving at a host system a public attestation key (PK_ATT) or a signed PK_ATT from a data processing (DP) accelerator over a bus;
verifying the PK_ATT using a public root key (PK_RK) associated with the DP accelerator;
in response to successfully verifying the PK_ATT, transmitting a kernel identifier (ID) to the DP accelerator to request attestation of a kernel object stored in the DP accelerator;
in response to receiving a kernel digest or a signed kernel digest corresponding to the kernel object form the DP accelerator, verifying the kernel digest using the PK_ATT; and
sending the verification results to the DP accelerator for the DP accelerator to access the kernel object based on the verification results.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
transmitting a request for attestation to the DP accelerator, wherein the DP accelerator generates an attestation key pair having the PK_ATT and a private attestation key (SK_ATT), in response to the request for attestation; and
receiving from the DP accelerator an encrypted PK_ATT signed using a private root key (SK_RK) of the DP accelerator.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
decrypting at the host system the encrypted PK_ATT using a public root key (PK_RK) associated with the DP accelerator; and
verifying that the PK_ATT received from the DP accelerator is identical to the decrypted PK_ATT.

### Claim 4 (depends on 1)

The method of claim 1, wherein the kernel digest is generated by hashing an executable image of the kernel object by the DP accelerator.

### Claim 5 (depends on 4)

The method of claim 4, wherein the kernel digest is signed using a private attestation key (SK_ATT) corresponding to the PK_ATT.

### Claim 6 (depends on 5)

The method of claim 5, wherein the kernel digest is signed together with a timestamp generated at a point in time, wherein the timestamp is utilized by the host system to verify that the kernel digest was generated within a predetermined period of time.

### Claim 7 (depends on 1)

The method of claim 1, wherein the host system receives the PK_RK associated with the DP accelerator from a predetermined trusted server over a network.

### Claim 8

A non-transitory machine-readable medium having instructions stored therein, which when executed by a processor, cause the processor to perform operations, the operations comprising:
receiving at a host system a public attestation key (PK_ATT) or a signed PK_ATT from a data processing (DP) accelerator over a bus;
verifying the PK_ATT using a public root key (PK_RK) associated with the DP accelerator;
in response to successfully verifying the PK_ATT, transmitting a kernel identifier (ID) to the DP accelerator to request attestation of a kernel object stored in the DP accelerator;
in response to receiving a kernel digest or a signed kernel digest corresponding to the kernel object form the DP accelerator, verifying the kernel digest using the PK_ATT; and
sending the verification results to the DP accelerator for the DP accelerator to access the kernel object based on the verification results.

### Claim 9 (depends on 8)

The machine-readable medium of claim 8, wherein the operations further comprise:
transmitting a request for attestation to the DP accelerator, wherein the DP accelerator generates an attestation key pair having the PK_ATT and a private attestation key (SK_ATT), in response to the request for attestation; and
receiving from the DP accelerator an encrypted PK_ATT signed using a private root key (SK_RK) of the DP accelerator.

### Claim 10 (depends on 9)

The machine-readable medium of claim 9, wherein the operations further comprise:
decrypting at the host system the encrypted PK_ATT using a public root key (PK_RK) associated with the DP accelerator; and
verifying that the PK_ATT received from the DP accelerator is identical to the decrypted PK_ATT.

### Claim 11 (depends on 8)

The machine-readable medium of claim 8, wherein the kernel digest is generated by hashing an executable image of the kernel object by the DP accelerator.

### Claim 12 (depends on 11)

The machine-readable medium of claim 11, wherein the kernel digest is signed using a private attestation key (SK_ATT) corresponding to the PK_ATT.

### Claim 13 (depends on 12)

The machine-readable medium of claim 12, wherein the kernel digest is signed together with a timestamp generated at a point in time, wherein the timestamp is utilized by the host system to verify that the kernel digest was generated within a predetermined period of time.

### Claim 14 (depends on 8)

The machine-readable medium of claim 8, wherein the host system receives the PK_RK associated with the DP accelerator from a predetermined trusted server over a network.

### Claim 15

A method for attestation between a host system and a data processing accelerator, the method comprising:
in response to an attestation request received from a host system, generating at a data processing (DP) accelerator an attestation key pair having a public attestation key (PK_ATT) and a private attestation key (SK_ATT);
transmitting the PK_ATT or a signed PK_ATT from the DP accelerator to the host system, wherein the DP accelerator is coupled to the host system over a bus;
receiving a kernel identifier (ID) identifying a kernel object from the host system, wherein the kernel ID is received in response to successful verification of the PK_ATT;
generating a kernel digest by hashing an executable image of the kernel object in response to the kernel ID; and
transmitting a signed kernel digest or the kernel digest to the host system to allow the host system to verify and attest the kernel object before accessing the kernel object to be executed within the DP accelerator.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
signing the PK_ATT using a private root key (SK_RK) associated with the DP accelerator; and
sending the signed PK_ATT to the host system to allow the host system to verify that the PK_ATT come from the DP accelerator.

### Claim 17 (depends on 16)

The method of claim 16, wherein the host system is configured to
decrypt the signed PK_ATT using a public root key (PK_RK) corresponding to the SK_RK; and
verify the PK_ATT by comparing the PK_ATT received from the DP accelerator and the decrypted PK_ATT.

### Claim 18 (depends on 15)

The method of claim 15, further comprising:
signing the kernel digest using the SK_ATT; and
sending the signed kernel digest to the host system to allow the host system to verify that the kernel digest is sent by the DP accelerator.

### Claim 19 (depends on 18)

The method of claim 18, wherein the host system is configured to
decrypt the signed kernel digest using the PK_ATT; and
verify the kernel digest by comparing the kernel digest received from the DP accelerator and the decrypted kernel digest.

### Claim 20 (depends on 18)

The method of claim 18, further comprising:
generating a timestamp; and
signing the kernel digest together with the timestamp, wherein the timestamp is utilized by the host system to verify freshness of the kernel digest.
