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

Updates to encryption #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

martinthomson
Copy link
Collaborator

The biggest change is moving to add an indicator for the type of event (source or trigger).

The rest is cleanup.

The biggest change is moving to add an indicator for the type of event
(source or trigger).
encode(key_id, 1),
encode(epoch, 2))
encode(epoch, 2),
encode(event_type, 1))
Copy link
Contributor

Choose a reason for hiding this comment

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

If we are sending an event_type here then do we still need secret shares of is_trigger_bit to be passed? Since now all helpers would know that in clear?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That is absolutely right. The helper parties can share the is_trigger bit. No savings to be had from it being sparse though because we only single it at first

@akoshelev
Copy link

Curious about possible attack vectors if we don't authenticate with event type. It does not seem possible to misinterpret source event as trigger and vice versa, so there must be something more sophisticated

@bmcase
Copy link
Collaborator

bmcase commented Apr 6, 2023

@akoshelev , I think if we don't have the is_trigger bit in the associated data there isn't a good way to enforce that a source-fan-out query only contains source events from the site which is submitting the query, since if source/trigger bit were encrypted the source site submitting the query could include source events from other source sites disguised as trigger reports. See also discussion here.

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

Successfully merging this pull request may close these issues.

None yet

4 participants