Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use signature label in Private Set Intersection #1392

Merged
merged 3 commits into from
Sep 10, 2020

Conversation

ipetr0v
Copy link
Contributor

@ipetr0v ipetr0v commented Aug 25, 2020

This change adds a signature label to Private Set Intersection example.

Fixes #1344
Ref #1066

Checklist

  • Pull request affects core Oak functionality (e.g. runtime, SDK, ABI)
    • I have checked that these tests are run by Cloudbuild

@ipetr0v ipetr0v mentioned this pull request Sep 3, 2020
4 tasks
@ipetr0v
Copy link
Contributor Author

ipetr0v commented Sep 7, 2020

@tiziano88 since we will not add Wasm signature labels to TIR, but still need an example with it for CI, what could be a better choice for it?
I think private_set_intersection is a good fit.

@tiziano88
Copy link
Collaborator

Yes I agree, I think that's a good fit

@ipetr0v ipetr0v changed the title Use signature label in TIR Use signature label in Private Set Intersection Sep 8, 2020
@ipetr0v ipetr0v marked this pull request as ready for review September 8, 2020 13:16
Comment on lines 6 to 7
z/qheXvmNUY/1YY06sw+1KQ0KjD9JF3/8aXHn9M8QtjTl0VY8rHWhnrWsWFiPmMG
Ee7ZndTs3yVQRUIa7BMoBg==
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, if you re-sign the same file with the same key, does it produce the same signature? Or does it use some nondeterministic value as part of the signature?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I regenerated a signature, and it stays the same

oak_runtime/src/node/wasm/mod.rs Outdated Show resolved Hide resolved
oak_runtime/src/node/wasm/mod.rs Show resolved Hide resolved
Move signature label from TIR to PSI

Fix signature discovery

Fix signature

Fix tests
@ipetr0v ipetr0v merged commit 7d4553f into project-oak:main Sep 10, 2020
@ipetr0v ipetr0v deleted the tir_signature_label branch September 10, 2020 20:29
@github-actions
Copy link

Reproducibility Index:

bb7d09a675183f6d02544d96403c6a6ca25e28f812c2ca191d36e73045f34111  ./examples/target/wasm32-unknown-unknown/release/abitest_0_frontend.wasm
03a378619acdab80a6696a455a74122ab371bf5d48ebdc51a443e7e812af9c06  ./examples/target/wasm32-unknown-unknown/release/abitest_1_backend.wasm
cba5c74e520956d4c7a8dd30b842a989c546361203affcd9031df306c19b933f  ./examples/target/wasm32-unknown-unknown/release/aggregator.wasm
96f4273a37835105bb9e085ab115af8d5678c9ddbb20f1a133a0b62c0efd2ff7  ./examples/target/wasm32-unknown-unknown/release/chat.wasm
062a38e53f2fa2885060b42980829ac17c5504e3127cf6f414db71fc4479308a  ./examples/target/wasm32-unknown-unknown/release/database_proxy.wasm
1dd40ca9e91709dfe0b2d761d4679eb91481b81fb3fca11fc2d03c651da523fc  ./examples/target/wasm32-unknown-unknown/release/hello_world.wasm
c1fae198b82f6000debf3bb66cd90566628d693c89f02ea9ac9de37acaa4a86a  ./examples/target/wasm32-unknown-unknown/release/http_server.wasm
65be802ade141f941bd7a122cea627ee95252952b4be55175fe3468fb34e6082  ./examples/target/wasm32-unknown-unknown/release/injection.wasm
4380dccc48f695fa53e04cdb96ead702c929b63af146d7708f83c72e8421f7ce  ./examples/target/wasm32-unknown-unknown/release/machine_learning.wasm
240d660044172e750220599760a5cfa34a0bcba9f08dd2dec70caa8bec3dd871  ./examples/target/wasm32-unknown-unknown/release/private_set_intersection.wasm
ecff5e62c1f2b1ac04e76dfae01e56b7fb3c595cc293d21ac0bbe9fa26cf18c8  ./examples/target/wasm32-unknown-unknown/release/running_average.wasm
61229225a8ba24e262d82c42ed761e125b187bbdf4cac32f8f68c4e888210171  ./examples/target/wasm32-unknown-unknown/release/translator.wasm
605884919eb59517cca5e4678800b9c001eb6ab82a01a8f76be11d6156a9637a  ./examples/target/wasm32-unknown-unknown/release/trusted_information_retrieval.wasm
893348254c1193ad902e64a32b8db3a05c8397c8fdc7293900fe3d8843ec44ba  ./oak_loader/target/x86_64-unknown-linux-musl/release/oak_loader

Reproducibility Index diff:

diff --git a/reproducibility_index b/reproducibility_index
index 2c56734..26afeb5 100644
--- a/reproducibility_index
+++ b/reproducibility_index
@@ -11,4 +11,4 @@ c1fae198b82f6000debf3bb66cd90566628d693c89f02ea9ac9de37acaa4a86a  ./examples/tar
 ecff5e62c1f2b1ac04e76dfae01e56b7fb3c595cc293d21ac0bbe9fa26cf18c8  ./examples/target/wasm32-unknown-unknown/release/running_average.wasm
 61229225a8ba24e262d82c42ed761e125b187bbdf4cac32f8f68c4e888210171  ./examples/target/wasm32-unknown-unknown/release/translator.wasm
 605884919eb59517cca5e4678800b9c001eb6ab82a01a8f76be11d6156a9637a  ./examples/target/wasm32-unknown-unknown/release/trusted_information_retrieval.wasm
-977b0a655338ae75fa445e6cacdb48ff26313f6c87f31817a63dac9e1a850611  ./oak_loader/target/x86_64-unknown-linux-musl/release/oak_loader
+893348254c1193ad902e64a32b8db3a05c8397c8fdc7293900fe3d8843ec44ba  ./oak_loader/target/x86_64-unknown-linux-musl/release/oak_loader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Wasm signature labels in clients
4 participants