Skip to content

Commit

Permalink
Merge pull request #20 from IABTechLab/tjm-UID2-2761-add-core-url-att…
Browse files Browse the repository at this point in the history
…estation-request

Adding user data to the attestation request
  • Loading branch information
thomasm-ttd authored Feb 16, 2024
2 parents e78bd39 + 7b3cd5d commit f7c1744
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
jobs:
build-and-pubish:
name: Build and publish JAR packages to Maven repository
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@v2
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@v2.20
with:
release_type: ${{ inputs.release_type }}
publish_to_maven: ${{ inputs.publish_to_maven }}
Expand Down
12 changes: 10 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>1.1.15-SNAPSHOT</version>

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

<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
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 f7c1744

Please sign in to comment.