Skip to content

Commit

Permalink
Adding url to attestation data
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasm-ttd committed Feb 15, 2024
1 parent e78bd39 commit 5c83290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions attestation-aws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.uid2</groupId>
<artifactId>attestation-aws</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>AWS Enclave attestation</description>
Expand Down Expand Up @@ -36,7 +36,7 @@
<dependency>
<groupId>com.uid2</groupId>
<artifactId>uid2-attestation-api</artifactId>
<version>1.1.0</version>
<version>1.6.10-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

public class NitroAttestationProvider implements IAttestationProvider {
@Override
public byte[] getAttestationRequest(byte[] publicKey) throws AttestationException {
public byte[] getAttestationRequest(byte[] publicKey, byte[] userData) throws AttestationException {
try {
NitroAttestationParams params = new NitroAttestationParams(null, publicKey, null);
NitroAttestationParams params = new NitroAttestationParams(userData, publicKey, null);
NitroAttestationRequest request = NitroAttestation.generateAttestationRequest(params);
return Arrays.copyOfRange(request.getData(), 0, request.getLength());
} catch (NitroException e) {
Expand Down

0 comments on commit 5c83290

Please sign in to comment.