Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ppml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ C++ SGX/TDX attestation module for PPML

1. [Install Intel SGX SDK](https://github.com/intel/linux-sgx#install-the-intelr-sgx-sdk)

2. Install SGX DCAP 1.14 libs
2. Install SGX DCAP 1.16 libs

```bash
# Ubuntu 20.04, root
cd /opt/intel
wget https://download.01.org/intel-sgx/sgx-dcap/1.14/linux/distro/ubuntu20.04-server/sgx_debian_local_repo.tgz
wget https://download.01.org/intel-sgx/sgx-dcap/1.16/linux/distro/ubuntu20.04-server/sgx_debian_local_repo.tgz
tar xzf sgx_debian_local_repo.tgz
echo 'deb [trusted=yes arch=amd64] file:///opt/intel/sgx_debian_local_repo focal main' | tee /etc/apt/sources.list.d/intel-sgx.list
wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | apt-key add -
Expand Down
2 changes: 1 addition & 1 deletion ppml/src/main/cpp/tdx_quote_generation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <time.h>
#include "tdx_attest.h"

#define devname "/dev/tdx-attest"
#define devname "/dev/tdx-guest"

#define HEX_DUMP_SIZE 16
#define MAX_ROW_SIZE 70
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ public void init() throws IOException {
// TODO: check SGX device to determine whether to load libquote_verification
libraries.add("quote_verification");

File tdx_dev = new File("/dev/tdx-attest");
File tdx_dev = new File("/dev/tdx-guest");
if (tdx_dev.exists()) {
libraries.add("tdx_quote_generation");
} else {
System.out.println("Not found /dev/tdx-attest, disable TDX quote generation.");
System.out.println("Not found /dev/tdx-guest, disable TDX quote generation.");
}

Path tempDir = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void verifyBadQuote() throws Exception {

@Test
public void generateTDXQuote() throws Exception {
File tdx_dev = new File("/dev/tdx-attest");
File tdx_dev = new File("/dev/tdx-guest");
if (tdx_dev.exists()) {
Attestation tdx = new Attestation();
byte[] reportData = "ppmltest".getBytes();
Expand Down